Commits
- Commit:
2c3e53dac6faed4d9502bd3310b4837f0d3112cf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
give each server process its own socket for the executor
this fixes a bug introduced with the prefork mechanics: every server
process shared the same socket, and this would cause a race condition
when multiple server processes asked for a script cgi being executed.
This gives each server process its own socket to talk to the executor,
so the race cannot happen.
- Commit:
376a540764c3778330b4f744031bcdb5c6e73647
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move log_init & vars to gmid.c, retain logger_main in log.c
this is to let the regression suite compile
- Commit:
793835cb26c39202133c754fb33f8909ebf8fb92
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add `log on/off' to enable/disable logs per-location
- Commit:
d278a0c3c50146c703b675ca4dac1d58ef286585
- From:
- Omar Polo <op@omarpolo.com>
- Date:
moving logging to its own process
- Commit:
52418c8d828bc25e0e84cc25d5e349a84be0b397
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix various compilation errors
Include gmid.h as first header in every file, as it then includes
config.h (that defines _GNU_SOURCE for instance).
Fix also a warning about unsigned vs signed const char pointers in
openssl.
- Commit:
9356f61a63d2d50194884ada28a9f3164fdd00f4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
BUFSIZ is variable, we need *exactly* 1024
Using BUFSIZ in sbuf is not OK. It's variable, and in various places
we assume that sbuf is 1024 (like handle_cgi_reply). We could patch
those, but we aren't sure BUFSIZ is >= 1024! Let's keep the hardcoded
number.
(found by debugging on arch on amd64, where BUFSIZ is bigger)
- Commit:
27b2fa9ae5d7a3807eea150cef5163931929cc23
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't mmap
Before we mmap(2) file for reading, and use a buffer to handle CGI
scripts. Turns out, for sequential access over the whole mmap isn't
better than our loop on read. This has also the additional advantage
that we can use handle_cgi (now handle_copy) for both files and CGI,
which is pretty cool.
This also fixes a nasty bug where we could hang a connection forever,
because we scheduled the wrong type of event (read on POLLOUT and
write on POLLIN, it's the other way around!)
- Commit:
02be96c6ddfc34e448cccd095b4f3d0efe4de8a3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add `require client ca' rule to require certs signed by a CA
- Commit:
d090dc8491682f30c49da381498c283c61f2e37b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
define config_path as global variable
- Commit:
abc007d2b32f597054399bd8fe72c1fbffdfb6a9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rewrite main loop using libevent
- Commit:
b63e30ff449ee1cf0091d5431f9b72cdd3b1e7e0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
define TLS_CLIENT_NOT_BEFORE/NOT_AFTER in CGI scripts
- Commit:
9f006a2127398af12ecf9159cd5ef28b3685e7a6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[cgi] split the query in words if needed and add them to the argv
- Commit:
3abf91b0b4a06e5d2f90e41f948e9c16478e23c7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve logs management
- Commit:
a709ddf5eb71e90a66cfd02bdaa9116c7f7ec3d6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added prefork option
- Commit:
e3ddf390950bf51d0c6c9cc6b931879006936e4c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add the ``entrypoint'' option