Commits
- 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.
- Commit:
49b73ba1ab4be9993532bdecaf14e74f45eca676
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix "first location" bug
reported by devel at datenbrei dot de. The first location would
overwrite the default value for a server, triggering the "`foo' rule
specified more than once" error. This also needed a small tweak on
how we match locations to avoid breaking other tests.
- Commit:
02be96c6ddfc34e448cccd095b4f3d0efe4de8a3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add `require client ca' rule to require certs signed by a CA
- Commit:
57ec3e776e0333167134b5b186f9c72870eb228d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor apply_block_return
move the strip and fmt logic to their own function
- Commit:
df58efff26529acd6a5675d3b4044d494b138397
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix seccomp for the new event loop
add/remove syscalls from the BPF filter and move sandbox() after
libevent initialisation