Earlier this year
-
r988
(remove a leftover log message
) committed by phrakt
- remove a leftover log message
remove a leftover log message
-
r987
(build zipline
) committed by phrakt
- build zipline
-
r986
(add a comment for usage()
) committed by phrakt
- add a comment for usage()
add a comment for usage()
-
r985
(recurse in src/bin
) committed by phrakt
- recurse in src/bin
-
r984
(add support for IP-based virtual hosts
) committed by phrakt
- add support for IP-based virtual hosts
add support for IP-based virtual hosts
-
r983
(set svn:keywords to 'Id' and svn:eol-style to 'native'
) committed by phrakt
- set svn:keywords to 'Id' and svn:eol-style to 'native'
set svn:keywords to 'Id' and svn:eol-style to 'native'
-
r982
(remove a reference to a local machine name
) committed by phrakt
- remove a reference to a local machine name
remove a reference to a local machine name
-
r981
(modify the function http_sock_sendfile() to return an int, 0...) committed by phrakt
- modify the function http_sock_sendfile() to return an int, 0 on success, or
-1 on failure, and the <len> parameter is now a pointer in which the total
number of bytes successfully written is stored. The call is only considered
successful if all bytes have been written.
The code was modified to put the call to sendfile() in a loop, and it now
compiles on Linux (at least I hope)
modify the function http_sock_sendfile() to return an int, 0 on success, or
-1 on failure, and the <len> parameter is now a pointer in which the total
number of bytes successfully written is stored. The call is only considered
successful if all bytes have been written.
The code was modified to put the call to sendfile() in a loop, and it now
compiles on Linux (at least I hope)
-
r980
(in the snprintf() call to generate an ETag, cast ent->ent_mt...) committed by phrakt
- in the snprintf() call to generate an ETag, cast ent->ent_mtime to an
unsigned int to avoid format argument warnings on Linux
in the snprintf() call to generate an ETag, cast ent->ent_mtime to an
unsigned int to avoid format argument warnings on Linux
-
r979
(include stdint.h for definitions of uint32_t
) committed by phrakt
- include stdint.h for definitions of uint32_t
include stdint.h for definitions of uint32_t
-
r978
(Linux has no `sa_len' field in the sockaddr structure, so to...) committed by phrakt
- Linux has no `sa_len' field in the sockaddr structure, so to avoid all the
portability hassle, use sizeof() on the family-dependent structures to return
the actual socket address length
Linux has no `sa_len' field in the sockaddr structure, so to avoid all the
portability hassle, use sizeof() on the family-dependent structures to return
the actual socket address length
-
r977
(there is no more _DEFAULT_ virtual host, instead httpd_host_...) committed by phrakt
- there is no more _DEFAULT_ virtual host, instead httpd_host_add() accepts a
flag argument that specifies if the host is the default host for the server
there is no more _DEFAULT_ virtual host, instead httpd_host_add() accepts a
flag argument that specifies if the host is the default host for the server
-
r976
(add some information to the header of each handler and add s...) committed by phrakt
- add some information to the header of each handler and add some error checking
in httpd_conf_vhost()
add some information to the header of each handler and add some error checking
in httpd_conf_vhost()
-
r975
(add the functions http_session_getattr() and http_session_se...) committed by phrakt
- add the functions http_session_getattr() and http_session_setattr() to get
and set session attributes
add the functions http_session_getattr() and http_session_setattr() to get
and set session attributes
-
r974
(new function http_addr_getlen(), which returns the actual le...) committed by phrakt
- new function http_addr_getlen(), which returns the actual length of data used
in the structure to store the address
new function http_addr_getlen(), which returns the actual length of data used
in the structure to store the address
-
r973
(Use an http_sockaddr_t structure to hold the address informa...) committed by phrakt
- Use an http_sockaddr_t structure to hold the address information for vhosts
of type HTTP_VHOST_ADDR. The previous structure couldn't hold information
for the port, and it removes code that was conditional on the definition of
IPV6_SUPPORT
Use an http_sockaddr_t structure to hold the address information for vhosts
of type HTTP_VHOST_ADDR. The previous structure couldn't hold information
for the port, and it removes code that was conditional on the definition of
IPV6_SUPPORT
-
r972
(Some changes brought to the virtual host code to prepare for...) committed by phrakt
- Some changes brought to the virtual host code to prepare for the support of
IP-based virtual hosts:
* add two parameters to http_vhost_alloc() to specify the type of virtual
host and the directory, and the hostname parameter becomes a void pointer
* new function http_vhost_setname() to change the name of a virtual host
* http_vhost_getref() is renamed to http_vhost_ref()
* http_vhost_gethost() becomes http_vhost_getaddr()
* http_vhost_getroot() and http_vhost_setroot() become http_vhost_getdir()
and http_vhost_setdir(), respectively
* all trailing slashes are removed from the path specified to
http_vhost_getdir()
* the name of a virtual host may not be longer than HTTP_VHOST_MAXNAMELEN,
including the terminating NUL-character
Some changes brought to the virtual host code to prepare for the support of
IP-based virtual hosts:
* add two parameters to http_vhost_alloc() to specify the type of virtual
host and the directory, and the hostname parameter becomes a void pointer
* new function http_vhost_setname() to change the name of a virtual host
* http_vhost_getref() is renamed to http_vhost_ref()
* http_vhost_gethost() becomes http_vhost_getaddr()
* http_vhost_getroot() and http_vhost_setroot() become http_vhost_getdir()
and http_vhost_setdir(), respectively
* all trailing slashes are removed from the path specified to
http_vhost_getdir()
* the name of a virtual host may not be longer than HTTP_VHOST_MAXNAMELEN,
including the terminating NUL-character
-
r971
(include <netinet/in.h> for the definitions of struct sockadd...) committed by phrakt
- include <netinet/in.h> for the definitions of struct sockaddr_in and
sockaddr_in6
include <netinet/in.h> for the definitions of struct sockaddr_in and
sockaddr_in6
-
r969
(make sure len is always initialized
) committed by phrakt
- make sure len is always initialized
make sure len is always initialized
-
r968
(* in http_sock_connect(), set the socket length based on the...) committed by phrakt
- * in http_sock_connect(), set the socket length based on the protocol family
* fix some comments
* in http_sock_connect(), set the socket length based on the protocol family
* fix some comments
-
r967
(add some accessor functions for the fields in an http_sockad...) committed by phrakt
- add some accessor functions for the fields in an http_sockaddr_t structure,
and replace macro calls by the equivalent function calls
add some accessor functions for the fields in an http_sockaddr_t structure,
and replace macro calls by the equivalent function calls
-
r966
(the functions http_sock_getladdr() and http_sock_getraddr() ...) committed by phrakt
- the functions http_sock_getladdr() and http_sock_getraddr() are now used to
get http_sockaddr_t values, instead of string versions of the addresses
the functions http_sock_getladdr() and http_sock_getraddr() are now used to
get http_sockaddr_t values, instead of string versions of the addresses
-
r965
(add the function mod_cgi_setenv() that accepts a format stri...) committed by phrakt
- add the function mod_cgi_setenv() that accepts a format string for the
environment value, and add some error checking in variable setup
add the function mod_cgi_setenv() that accepts a format string for the
environment value, and add some error checking in variable setup
-
r964
(don't include <netinet6/in6.h> directly
) committed by phrakt
- don't include <netinet6/in6.h> directly
don't include <netinet6/in6.h> directly
-
r963
(modify the vhost structure by moving the hostname field in a...) committed by phrakt
- modify the vhost structure by moving the hostname field in a union that also
contains structures for IPv4 and IPv6 addresses, which will allow the
creation of IP-based virtual hosts
modify the vhost structure by moving the hostname field in a union that also
contains structures for IPv4 and IPv6 addresses, which will allow the
creation of IP-based virtual hosts
-
r962
(don't include <netinet6/in6.h> directly, it is implicitly in...) committed by phrakt
- don't include <netinet6/in6.h> directly, it is implicitly included by
<netinet/in.h>
don't include <netinet6/in6.h> directly, it is implicitly included by
<netinet/in.h>
-
r961
(set the URI port to HTTP_PORT when allocating a new URI stru...) committed by phrakt
- set the URI port to HTTP_PORT when allocating a new URI structure
set the URI port to HTTP_PORT when allocating a new URI structure
-
r960
(* free the response string in http_msg_reset() and http_msg_...) committed by phrakt
- * free the response string in http_msg_reset() and http_msg_free()
* simplify http_msg_findeol()
* use http_msg_findeol() in http_msg_parseresp()
* free the response string in http_msg_reset() and http_msg_free()
* simplify http_msg_findeol()
* use http_msg_findeol() in http_msg_parseresp()
-
r959
(* add a field to the http_resp structure to keep the status ...) committed by phrakt
- * add a field to the http_resp structure to keep the status message from the
HTTP response
* add some logging to http_msg_parseresp()
* http_msg_findeol is now static
* add a field to the http_resp structure to keep the status message from the
HTTP response
* add some logging to http_msg_parseresp()
* http_msg_findeol is now static
-
r958
(Set svn:ignore to ignore the `zipline' binary and core file ...) committed by phrakt
- Set svn:ignore to ignore the `zipline' binary and core file (if any)
Set svn:ignore to ignore the `zipline' binary and core file (if any)
-
r957
(Enable IPv6 support in libhttp by default
) committed by phrakt
- Enable IPv6 support in libhttp by default
Enable IPv6 support in libhttp by default
-
r956
(-D options should be set on CPPFLAGS, not CFLAGS
) committed by phrakt
- -D options should be set on CPPFLAGS, not CFLAGS
-D options should be set on CPPFLAGS, not CFLAGS
-
r955
(implement http_msg_parseresp()
) committed by phrakt
- implement http_msg_parseresp()
implement http_msg_parseresp()
-
r954
(* add a log handler
* tracing enables debug as well
) committed by phrakt
- * add a log handler
* tracing enables debug as well
* add a log handler
* tracing enables debug as well
-
r953
(Remove trailing whitespace
) committed by phrakt
- Remove trailing whitespace
Remove trailing whitespace
-
r952
(Basic code for a client request
) committed by phrakt
- Basic code for a client request
Basic code for a client request
-
r951
(add two functions to get/set the port for an http_sockaddr_t...) committed by phrakt
- add two functions to get/set the port for an http_sockaddr_t structure
add two functions to get/set the port for an http_sockaddr_t structure
-
r950
(a command-line HTTP client, not ready yet
) committed by phrakt
- a command-line HTTP client, not ready yet
a command-line HTTP client, not ready yet
-
r949
(If we're on Linux, include <sys/sendfile.h> for the sendfile...) committed by phrakt
- If we're on Linux, include <sys/sendfile.h> for the sendfile() declaration
If we're on Linux, include <sys/sendfile.h> for the sendfile() declaration
-
r948
(Modify the call to http_sock_connect() to use an http_sockad...) committed by phrakt
- Modify the call to http_sock_connect() to use an http_sockaddr_t * instead
of struct sockaddr *, and no need for a length parameter
Modify the call to http_sock_connect() to use an http_sockaddr_t * instead
of struct sockaddr *, and no need for a length parameter
-
r947
(More documentation and some examples
) committed by phrakt
- More documentation and some examples
More documentation and some examples
-
r946
(Increase HTTPD_VHOSTS_MAX to 256
) committed by phrakt
- Increase HTTPD_VHOSTS_MAX to 256
Increase HTTPD_VHOSTS_MAX to 256
-
r945
(Garbage core file committed by mistake
) committed by phrakt
- Garbage core file committed by mistake
Garbage core file committed by mistake
-
r944
(Remove references to the fields `hs_ralen' and `hs_lalen' in...) committed by phrakt
- Remove references to the fields `hs_ralen' and `hs_lalen' in the socket
structure, and adapt the code for the http_sockaddr_t structure
Remove references to the fields `hs_ralen' and `hs_lalen' in the socket
structure, and adapt the code for the http_sockaddr_t structure
-
r943
(Add missing prototypes, definition for HTTP_SOCKADDR_FAMILY(...) committed by phrakt
- Add missing prototypes, definition for HTTP_SOCKADDR_FAMILY()
Add missing prototypes, definition for HTTP_SOCKADDR_FAMILY()
-
r942
(compile addr.c
) committed by phrakt
- compile addr.c
-
r941
(functions to convert between network representation and huma...) committed by phrakt
- functions to convert between network representation and human-readable
strings
functions to convert between network representation and human-readable
strings
-
r940
(Replace the (bad) use of `struct sockaddr' by http_sockaddr_...) committed by phrakt
- Replace the (bad) use of `struct sockaddr' by http_sockaddr_t in the socket
structure
Replace the (bad) use of `struct sockaddr' by http_sockaddr_t in the socket
structure
-
r939
(Revert the previous commit, except for addr.h
) committed by phrakt
- Revert the previous commit, except for addr.h
Revert the previous commit, except for addr.h
-
r938
(Make the http_sock_addr structure compatible with the sockad...) committed by phrakt
- Make the http_sock_addr structure compatible with the sockaddr structure by
having a union of sockaddr_in and sockaddr_in6 at the start (no other fields
for now, actually)
Make the http_sock_addr structure compatible with the sockaddr structure by
having a union of sockaddr_in and sockaddr_in6 at the start (no other fields
for now, actually)
|