Commits
- Commit:
c440a0ded9bef20b32c6f86b27cdf5ab52e1e16f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
log ip address and port when tls_handshake fails
These connection are not otherwise logged and it could be helpful
to track down the bad ip.
- Commit:
81634643dbb99f7270cbb5ba5f84adc28991018d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix comment (ge -> gemexp)
- Commit:
390d312b22670d92dc6ee5afd7a116b7a2330881
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't call client_close() from fcgi/proxy bev handlers
We might end up calling client_close() from start_reply(), but that
will free the fcgi/proxy bufferevent while they're still used on the
stack.
Instead, start_reply() only sets REQUEST_DONE and exits, returning the
error eventually, so callers know when to stop.
- Commit:
d98ef734940a49d192d87024e60559b38eb190c9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move strip_path to utils.c
- Commit:
26df50981fe18b5f244293b203c1a1eb30759554
- From:
- Omar Polo <op@omarpolo.com>
- Date:
actually use the specified log style
- Commit:
6a8387e5f54a4d6db07aa2f3c7046f618b82aac2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add `fastcgi off' to forceful skip fastcgi for a route
- Commit:
a1ba9650a9f0cc0d9e70800d71769d32f927b939
- From:
- Omar Polo <op@omarpolo.com>
- Date:
revamp fastcgi configuration: make it per-location
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Â>'.
- Commit:
71b02f6390ca350eee6c13259140143e34e0dd25
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename do_accept() -> server_accept()
- Commit:
2c3810687f0c8b7c14897618c5a3147f949df408
- From:
- Omar Polo <op@omarpolo.com>
- Date:
change log_request to take the code and meta unpacked
don't know what i was smoking when I wrote log_request() like that...
- Commit:
e3ce19dcc10299ab7bd24b01b123e61bc0f44b4e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
change on fatalx -> log_warnx
we already check the validity of the format string, but still avoid a
gratious fatal() at runtime.
- Commit:
80192f45899c121c28afa65b7b2e7230f3b4fedf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename fmt_sbuf -> fmtbuf; make the buffer explicit
- Commit:
994fc034e547f35a995439782ed45bfd12f8b1be
- From:
- Omar Polo <op@omarpolo.com>
- Date:
avoid needless strlen()
- Commit:
e2003e7e305adabd1ee575e401a55e6d7e050297
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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.
- Commit:
2339a71178cc4a29dd2eada458c84b6092b056ce
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use a function-local buffer for the canonical redirect
- Commit:
c9e878d6a40f4b509bb8928e4736a63f8b7723a2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use snprintf() instead of chain of strlcpy/cat