Commits
- 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:
3cb3dd4d422cdead2dd09f1e3ce3eff35a9e6dc8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
accept4 -> accept
accept4(2) isn't part of any standard (even though it'll be part in
the future) and raises warnings on some linux distro. Moreover, we
don't have thread that may fork at any time, so doing a mark_nonblock
after isn't a big deal.
- 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:
5e3285d52ea2b97b84fdef0b3785782d7947b50e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typo
- Commit:
98ee8406aaf0b3c06d009e75e17594692c1dabb3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix occurrence of (killed) load_file
- Commit:
a4188b78652d42ce5c6c19d01347e8737dfc509f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
echo parsing test result
- 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:
a6e689d7450c532baa306b293314e42c0b64a300
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix config reload
the old server processes would stick around waiting on the signals
events. While there, also drop the `struct server_events' and define
events as globals.
- Commit:
e1b46123590fc7a28efbf439bc9bdb3bf95d5eba
- From:
- Omar Polo <op@omarpolo.com>
- Date:
dup line
- Commit:
a72cc6be31afa97532ea4339ee6e5f3ea20fac68
- From:
- Omar Polo <op@omarpolo.com>
- Date:
improve compat/getprogname on GNU libc
but why'd they called it program_invocation_short_name? They couldn't
find a longer name?
- Commit:
4d7043e33c8d90402797c71ff96747897d053515
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add check for program_invocation_short_name
- Commit:
1606927ea12340e93bef807d16cf71371dd016ea
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add -levent in the example
- Commit:
8e56d6adc423e81f47259a50ac5b11a1dd3c9877
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use fatal instead of err/fprintf+exit
fatal logs to the correct place, err only on stderr.
- Commit:
2a911637be035476640c5c65e45ff26cb6bf169a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix compilation on OSes without sandbox
- Commit:
0b040b99091cee8048cfb4b164f3e0ddfa0d1631
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix setproctitle detection on FreeBSD