Commits


parse (and log) the header from fastcgi


multiple -v don't make it more verbose anymore


change on fatalx -> log_warnx we already check the validity of the format string, but still avoid a gratious fatal() at runtime.


rename fmt_sbuf -> fmtbuf; make the buffer explicit


add some ideas


avoid needless strlen()


simplify request handling 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.


use a function-local buffer for the canonical redirect


remove the fcgi debug code


make `listen on' defaults on port 1965


use snprintf() instead of chain of strlcpy/cat


call getnameinfo() only once per request


avoid gratious strlen; evbuffer_readln returns the length


rework check


default chroot to user' home if unset