aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-07-25allow to change the logging style; introduce some new onesOmar Polo
add `log style <style>'; The old default is called `legacy' now, a new default format is added called `condensed', and `common' and `combined' to mimick Apache httpd and nginx (respectively) are also added.
2023-07-25update/sync/correct ChangeLogOmar Polo
2023-07-25add missing -include titan.dOmar Polo
2023-07-24still respect `log' when in debug modeOmar Polo
2023-07-24add a manpage for titan(1)Omar Polo
2023-07-24titan: parse the response code and exit accordinglyOmar Polo
Exit with 0 if the response code was in the 2x or 3x range, or with 2 for other codes. It already exits with 1 upon any other error (including parsing errors.) Print the redirect code on 3x to stdout and the meta to stderr for the 1x, 4x, 5x and 6x ranges.
2023-07-24bump man dateOmar Polo
2023-07-24run tls_connect_socket() after dropping the "inet dns" pledge promisesOmar Polo
2023-07-24read from stdin if no file is givenOmar Polo
2023-07-24sync changelogOmar Polo
2023-07-24open the log files inside the chrootOmar Polo
2023-07-24reopen log files upon SIGUSR2Omar Polo
2023-07-24add a test for the file loggingOmar Polo
2023-07-24add ability to log to files with log access <path>Omar Polo
2023-07-24logger use dprintf and a fd instead of a FILEOmar Polo
simplifies further handling. The stdio layer introduces its own buffering and for the logs I'd like to avoid it. fflush(3) is an option, but using a raw fd and dprintf(2) requires less code.
2023-07-23sync changelogOmar Polo
2023-07-23remove unused IMSG typesOmar Polo
2023-07-23avoid use-after-freeOmar Polo
2023-07-23fix a reduce/reduce conflictOmar Polo
location -> error and locopt -> fastcgi -> error both end up with a optnl that can be reduced to the empty string.
2023-07-23add a test with fastcgi, locations and forceful disablingOmar Polo
2023-07-23add `fastcgi off' to forceful skip fastcgi for a routeOmar Polo
2023-07-23adjust syntax in fastcgi test; add another test for the old syntaxOmar Polo
2023-07-23revamp fastcgi configuration: make it per-locationOmar Polo
this revamps the syntax in the configuration to better match httpd(8) (and in general be less weird) and to allow per-location fastcgi configurations. the bare `param' is now deprecated, but for compatibility it acts like `fastcgi param' would do now. Same story for `fastcgi <pathÂ>'.
2023-07-23move struct envlist and alist upOmar Polo
2023-07-23plug memleakOmar Polo
2023-07-23add titan to .gitignoreOmar Polo
2023-07-23revert previousOmar Polo
Somehow the compat for __dead is not working properly on macos (cirrus ci) since it complains that parse_debug() does not return a value in all control paths when it uses usage() (marked as __dead) to catch a wrong usage.
2023-07-22use __dead instead of __attribute__((noreturn))Omar Polo
2023-07-22titan: add compat shims to compile on !OpenBSDOmar Polo
2023-07-22gg: warn when the TLS layer is not closed properlyOmar Polo
various servers are not handling correctly the close notify so for the moment don't turn this into an hard error but just warn. Hopefully, given some time, most servers will be fixed. while here, drop the gotos and just use a break to exit the main loop.
2023-07-22add titan(1) -- a draft titan clientOmar Polo
2023-07-22split out iri.h from gmid.hOmar Polo
2023-07-22fmtOmar Polo
2023-07-22drop engine supportOmar Polo
2023-07-22remove the useless logging methodsOmar Polo
it makes more clear where the magic is. adapted from the smtpd' ca.c diff.
2023-07-02add compat for endian (now required by imsg)Omar Polo
2023-07-02update imsgOmar Polo
2023-07-01rename do_accept() -> server_accept()Omar Polo
2023-07-01enrich the description of the server processOmar Polo
2023-07-01typoOmar Polo
2023-07-01change log_request to take the code and meta unpackedOmar Polo
don't know what i was smoking when I wrote log_request() like that...
2023-07-01improve fcgi test: send more than one chunk of dataOmar Polo
2023-07-01parse (and log) the header from fastcgiOmar Polo
2023-07-01multiple -v don't make it more verbose anymoreOmar Polo
2023-07-01change on fatalx -> log_warnxOmar Polo
we already check the validity of the format string, but still avoid a gratious fatal() at runtime.
2023-07-01rename fmt_sbuf -> fmtbuf; make the buffer explicitOmar Polo
2023-07-01add some ideasOmar Polo
2023-07-01avoid needless strlen()Omar Polo
2023-07-01simplify request handlingOmar Polo
get rid of check_path(), it's overly complicated. Instead, inline open_file() in client_read() and rework open_dir() to just use openat() instead of the complicate dance it was doing. Simplify open_dir() too in the process: if the directory entry for the index is not a regular file, pretend it doesn't exist.
2023-07-01use a function-local buffer for the canonical redirectOmar Polo