Commits
- Commit:
e3ddf390950bf51d0c6c9cc6b931879006936e4c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add the ``entrypoint'' option
- Commit:
cd761624942ce5bd06fcf939400ed41b8166d37d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
swap check in vhost_* fns
it's faster (statistically speaking) to first compute if the option is
set and then fnmatch than the inverse. This way we can avoid
unnecessary fnmatch.
- Commit:
6abda252e960943a302f7a945b1d008e463ea316
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added ``block return'' and ``strip'' options
- Commit:
daac4a945284dd0f8baa3f35234981f7bc0426da
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix auto index precedence
- Commit:
ca21e1004303c6ccff7713813ab5238426414d8f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reload configuration on SIGHUP
- Commit:
1e3ef7ab4f803b6309fcddc11dc23ecc5f33be27
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use upper bound given by poll
it's a waste to loop through all fds. We know the *exact* number of
clients that needs attention, so use that information to limit the
looping.
- Commit:
9b8f5ed2c0c53467115b3b1d6754642d8e5e4da1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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...)
- Commit:
346f28eeaa205d268d1e63c7ffd86cf041f6d1e6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move mark_nonblock to utils.c
- Commit:
fe40638928b636182afb03b6327afa15c80d560c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
mark various functions as static
By marking all those function as static, the compiler is free to do
more optimizations. In addition, those functions are not used outside
server.c
- Commit:
87f2b68b58fc46ff12a592474e65280ef8455aff
- From:
- Omar Polo <op@omarpolo.com>
- Date:
cgi now follows globbing rules
- Commit:
5f715ce43fa60b2347d6dc64588c5ffe61ebc067
- From:
- Omar Polo <op@omarpolo.com>
- Date:
print the header in the directory listing
- Commit:
35744950aa0953bee3035400e8035af844a675ba
- From:
- Omar Polo <op@omarpolo.com>
- Date:
simplify handle_cgi
Now that I got rid of the enum+switch, adding more state is easier.
Before, we used an hack to remember if we had read the CGI reply or
not (c->code = -1).
This introduces a new state, handle_cgi_reply that reads the CGI
script reply, logs it, and only then switches to handle_cgi.
handle_cgi itself is cleaner, now it only reads into c->sbuf and send
what it had red.
We even get, almost for free, the 42 error. If read exists with -1 or
0 from in handle_cgi_reply, we return a proper error to the client.
We can extend this further in the future and also try to validate the
CGI reply (for now we're only looking for a \n).
- Commit:
b06f80cdf43be684bd57f9674917d2479bc0d317
- From:
- Omar Polo <op@omarpolo.com>
- Date:
switch to handle_open_conn right after handshake
So we don't re-enter the handle_handsahke and re-do the loop on
fnmatch etc. This way, once we're successfully past the handshake,
we'll re-enter no handle_open_conn.
- Commit:
112802ea3116b6e11a70d6060e6e238495498bbc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
client state machine: function pointers instead of enum+switch
- Commit:
2fafa2d23e5607def335902b7a9d10a9de5247a9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bring the CGI implementation in par with GLV-1.12556