Commit Briefs

Omar Polo

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!)




Omar Polo

rewrite main loop using libevent




Omar Polo

improve logs management


Omar Polo

added prefork option


Omar Polo

add the ``entrypoint'' option



Omar Polo

reload configuration on SIGHUP


Omar Polo

refactor executor_main

now it's symmetrical to listener_main().


Omar Polo

refactoring startup logic


Omar Polo

revert commit 346f28eeaa205d268d1e63c7ffd86cf041f6d1e6

keep mark_nonblock in utils.c, as otherwise the build for the regress suite will fail (mark_nonblock needs fatal which is in gmid.c, and we can't link gmid.o with the regress suite...)


Omar Polo

move mark_nonblock to utils.c