Commits
- 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:
9edb82825145b2311c547003b9e7ca286ef7db3a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop privileges after the fork
- Commit:
4ee08bd14841bfa98575cce26e099cab50a1827d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix location example
- 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:
5b4a641893cfc1db2af0c612566083f58b10903b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
let LEX and YACC be customizable via args
- Commit:
b1d52c3105310de20d99f9d9141541dcaf24e3cc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ignore clangd' compile_flags.txt
- Commit:
5f715ce43fa60b2347d6dc64588c5ffe61ebc067
- From:
- Omar Polo <op@omarpolo.com>
- Date:
print the header in the directory listing
- Commit:
3c680bddab146e8c8ccf5eba1fec7e1ee978d638
- From:
- Omar Polo <op@omarpolo.com>
- Date:
configless: fixing the case of the implicit "."
I got bitten by the scope visibility rules. After the end of the
block, the path variable is no longer valid, and in fact later
load_vhosts fails to open that (because the buffer gets invalidated)
- 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:
92da82858b6b8fe44f34e582967767d7f4d32f4d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
document the DFA
- Commit:
112802ea3116b6e11a70d6060e6e238495498bbc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
client state machine: function pointers instead of enum+switch
- Commit:
1e7591a9220359bc646562b161719d406cbbc267
- From:
- Omar Polo <op@omarpolo.com>
- Date:
parse_err is a const pointer