Commits
- Commit:
89541eeec019626df4651f44b90df6a31a844dab
- From:
- Omar Polo <op@omarpolo.com>
- Date:
define TLS_VERSION, TLS_CIPHER and TLS_CIPHER_STRENGTH for CGI scripts
- Commit:
b8e64ccd44290cdd34bdcd3fd85fb1a9cb7486dd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
list instead of fixed-size array for vhosts and locations
saves some bytes of memory and removes the limit on the maximum number
of vhosts and location blocks.
- Commit:
62e001b06778c96d0deebceddf1913f7b57ab2d6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move all sandbox-related code to sandbox.c
while there, add capsicum for the logger process
- Commit:
bc99d868bc3745dcc65add06cd3f9b9ec3575cb5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactoring: imsg everywhere
use imsg to handle ALL kinds of IPC in gmid. This simplifies and shorten the
code, and makes everything more uniform too.
- Commit:
4604dc9671fc46832928fb9f6ab83aaee55931d8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move vhost_should_log call to server.c
log.o is linked to some regress/ stuff. Calling from there a vhost_*
function means that we should link the regress/stuff to server.o too
(and that would pull in other stuff...). Moving the call is easier,
and also probably better.
- Commit:
793835cb26c39202133c754fb33f8909ebf8fb92
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add `log on/off' to enable/disable logs per-location
- Commit:
6b191ed52a6f3e10816f50d23ec3e52a7d8f2837
- From:
- Omar Polo <op@omarpolo.com>
- Date:
tests and compat for imsg
- Commit:
c39b26d308ed63a537de88b963935c2acfe33405
- From:
- Omar Polo <op@omarpolo.com>
- Date:
mark reschedule_write inline & static
- Commit:
eecad7a3ca59d176f7d2c5294c90bb34ad2ce928
- From:
- Omar Polo <op@omarpolo.com>
- Date:
other s/fnmatch/matches
- 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:
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:
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.