Age | Commit message (Collapse) | Author |
|
additional actions before printing it. OK rzalamena@
|
|
sockets by sending the fd one-by-one. This allows to start httpd with
max 32 server instances and many server sockets without changing the
default rlimits in any way.
OK rzalamena@
|
|
start up. To achieve this proc_init() initiates only the necessary pipes
between child and parent, allocate and distribute fds in proc_connect().
In case of configuration checks ('-n') we do nothing in proc_init() and
proc_connect().
ok reyk@
|
|
to exit gracefully instead of fatal()ing.
ok reyk@
|
|
internals.
ok phessler@
|
|
break out of the loop, or a pointer to ':'. Thus the extra check for
':' is unnecessary and can be removed.
ok jung@
|
|
Unfortunately in that case the line was not freed. This lead to a
memleak on each request. Thus, save the return value prior to
returning, free the line and return the saved value.
ok jung@
|
|
the CLOEXEC flag ourselves.
ok bluhm@, deraadt@
|
|
From deraadt@
OK rzalamena@
|
|
OK rzalamena@
|
|
|
|
|
|
|
|
variable and limit it from 128 to 32 instances (the old value).
While here, move a few PROC_ defines around.
OK rzalamena@
|
|
Pointed out by benno@
|
|
receiving side of proc_connect(). Move some code from main into
proc_init(), the function is now called by parent and children, not
just the parent and it is less copy + paste for other daemons.
OK florian@
|
|
configuration that has to be initialized in each process and was
inherited from the parent instead of setting it everywhere. I'm
surprised that it worked.
OK florian
|
|
the old behaviour and unbreaks the regress tests.
|
|
its own struct. Requested by and OK reyk@
|
|
|
|
|
|
This commit implemented the basic functions to proc.c to make it not rely
on global variables, malloc()ed memory and CLOEXEC pipes.
Fix child proc titles from reyk@
ok reyk@, florian@
|
|
anymore. Also fix the process initialization prototypes.
ok reyk@
|
|
kill()ing child process.
"Looks good to me" millert@
ok benno@
|
|
"Looks good to me" natano@
|
|
fastcgi stdout record. Keep processing stdout records until we found
the header / body separator and only then generate the header
response.
Problem reported by many.
OK jung@
|
|
To keep the debug functionality intact and correct we'll use the pid
field in the imsg header to pass the instance number. Remember to always
pass 'ps_instance + 1' otherwise libutil will fill imsg header pid field
with the imsgbuf pid (which is the current process pid).
ok reyk@
|
|
We got the same information in ps_instances[proc] (more accurate) and
we avoid allocating unnecessary memory for pipe storage.
ok reyk@
|
|
ok reyk@
|
|
ok reyk@
|
|
ok natano reyk
|
|
happens way too often and does not provide much information.
OK jung@
|
|
the other server_tls_* functions (and I like the prefix notation
better). No functional change.
|
|
which is actually the same thing (cluebat from reyk@).
|
|
Requested by reyk@
|
|
not allow TLS and non-TLS to be configured on the same port, do not allow
TLS options to be specified without a TLS listener and ensure that the TLS
options are the same when a server is specified on the same address/port.
Currently, these configurations are permitted but do not work as intended.
Also factor out and reuse the server matching code, which was previously
duplicated.
ok reyk@
|
|
ok reyk@
|
|
specification does not define any use for such a payload, future
extensions to HTTP might use the OPTIONS body to make more detailed
queries about the target resource." The future has arrived.
Found and tested by Michael Lechtermann
OK benno@
|
|
changes - map the previous configuration to the equivalent in the new
groups. This will be revisited post release.
Discussed with beck@
|
|
change this in all config parsers in our tree that support macros.
problem reported by sven falempin.
feedback from henning@, stsp@, deraadt@
ok florian@ mikeb@
|
|
|
|
Pointed out by Frank Schoep, thanks!
|
|
From Fabian Raetz <fabian dot raetz at gmail dot com>
|
|
requests lacking "HTTP/<version>".
This makes it more obvious that httpd(8) does not attempt to support
HTTP v0.9 (circa 1991), when "GET <url>\r\n" was valid.
ok millert@ florian@
|
|
from Hiltjo Posthuma
"do." deraadt
|
|
from Hiltjo Posthuma
"do." deraadt
|
|
ok beck krw millert
|
|
of just going to the home page.
requested by and ok beck
|
|
people might get hurt when doing copy & paste.
Patch from Hiltjo Posthuma <hiltjo at codemadness dot org>.
OK florian@ jmc@
|
|
certificate and private key at the same time.
|