Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-03-20 | typo | Omar Polo | |
2021-03-20 | fix signal handling so it works on linux too | Omar Polo | |
it seems that linux calls the signal handlers even when we're waiting on sigwait for that signal. Work around that. | |||
2021-03-20 | fix correct shutdown after SIG{INT,TERM} | Omar Polo | |
2021-03-20 | quit every process cleanly when receiving SIGINT or SIGTERM | Omar Polo | |
2021-03-19 | refactoring: imsg everywhere | Omar Polo | |
use imsg to handle ALL kinds of IPC in gmid. This simplifies and shorten the code, and makes everything more uniform too. | |||
2021-03-03 | split usage string into two lines | Omar Polo | |
2021-03-03 | give each server process its own socket for the executor | Omar Polo | |
this fixes a bug introduced with the prefork mechanics: every server process shared the same socket, and this would cause a race condition when multiple server processes asked for a script cgi being executed. This gives each server process its own socket to talk to the executor, so the race cannot happen. | |||
2021-02-23 | move log_init & vars to gmid.c, retain logger_main in log.c | Omar Polo | |
this is to let the regression suite compile | |||
2021-02-23 | moving logging to its own process | Omar Polo | |
2021-02-12 | fix various compilation errors | Omar Polo | |
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. | |||
2021-02-10 | add newline after usage | Omar Polo | |
2021-02-08 | fix seccomp for the new event loop | Omar Polo | |
add/remove syscalls from the BPF filter and move sandbox() after libevent initialisation | |||
2021-02-07 | improve logs management | Omar Polo | |
2021-02-07 | added prefork option | Omar Polo | |
2021-02-06 | add the ``entrypoint'' option | Omar Polo | |
2021-02-06 | added ``block return'' and ``strip'' options | Omar Polo | |
2021-02-04 | missing argument for LOGI | Omar Polo | |
2021-02-04 | avoid race-condition | Omar Polo | |
what if we receive a SIGHUP right after unblock_signal (or during the whole block_signals...unblock_signals) but *before* the wait_sighup? Yeah. | |||
2021-02-04 | reload configuration on SIGHUP | Omar Polo | |
2021-02-03 | drop unnecessary check around close | Omar Polo | |
2021-02-03 | refactor executor_main | Omar Polo | |
now it's symmetrical to listener_main(). | |||
2021-02-03 | refactoring startup logic | Omar Polo | |
2021-02-03 | drop privileges after the fork | Omar Polo | |
2021-02-02 | configless: fixing the case of the implicit "." | Omar Polo | |
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) | |||
2021-02-01 | ensure absolute paths in config-less mode | Omar Polo | |
2021-01-31 | set cloexec status on the socketpair fds | Omar Polo | |
the executor forks to spawn the cgi scripts, and they inherit the socket for communication with the listener process. Make that impossible. | |||
2021-01-28 | remove unused function | Omar Polo | |
2021-01-27 | -v for verbose logging | Omar Polo | |
2021-01-27 | improve configuration parsing error | Omar Polo | |
2021-01-27 | drop unused variable | Omar Polo | |
2021-01-27 | use starts_with in puny.c | Omar Polo | |
2021-01-27 | make configless mode works again. also accept every host | Omar Polo | |
2021-01-27 | drop the daemon config in favour of the -f flag | Omar Polo | |
Now it daemonize by default when running with a config, unless the -f flag is given. | |||
2021-01-27 | initial punycode support | Omar Polo | |
2021-01-27 | sane defaults for the config-less mode | Omar Polo | |
2021-01-25 | rework the configless mode: change flags and generate certs | Omar Polo | |
2021-01-25 | chroot & drop privileges | Omar Polo | |
2021-01-25 | order | Omar Polo | |
2021-01-24 | added support for location blocks | Omar Polo | |
2021-01-24 | initialize config | Omar Polo | |
2021-01-24 | move configuration init stuff in its own function | Omar Polo | |
2021-01-21 | add ends_with | Omar Polo | |
2021-01-21 | const-ify parameter to strtonum | Omar Polo | |
2021-01-21 | use strtonum | Omar Polo | |
2021-01-21 | rename mimes to mime ; pass config esplicitly to mime* functions | Omar Polo | |
2021-01-21 | don't crash on wrong vhost or missing SNI | Omar Polo | |
the new logging code was crashing if the client didn't support SNI or if required an unknown vhost: this because we short-circuit in handle_handshake to an error, so c->iri isn't populated yet (we don't even read the request). fixes #1 | |||
2021-01-20 | improve logs | Omar Polo | |
now we log the full IRI requested (before was only the path) and the response line (even for CGI). | |||
2021-01-18 | improve mime handling | Omar Polo | |
we still have an hardcoded list, but this implements the API needed to modify the mappings. | |||
2021-01-18 | removing err/warn functions with our fatal | Omar Polo | |
err/warn is not available on some systems (unfortunately!) and in any case don't play well with our daemon mode (that closes std{in,out,err}). Use our fatal that is daemon-aware. | |||
2021-01-17 | reorganize: move bunch of functions to server.c | Omar Polo | |
cgi.c wasn't really needed; it better to group all the server related functions together, cgi or not. Now gmid.c contains only startup and utility code. |