Commits
- 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
- Commit:
ed164e7221f75d3d7f48351e9427f2ce53ab284a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
call getnameinfo() only once per request
- Commit:
da0821b6cb54a85bcbe76cdf0a9a16f8f1a14619
- From:
- Omar Polo <op@omarpolo.com>
- Date:
avoid gratious strlen; evbuffer_readln returns the length
- Commit:
841633cfeca9acf9a691f16760c2d7c06202664f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
plug memory leak in client_close_ev
- Commit:
ddf7a437de12fab9e000e5b555fdbf1891632dad
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix client_close_ev when tls_close() returns TLS_WANT_POLLIN/OUT
in those cases we need to reschedule the function and return, instead
of going on with the cleanup.
- Commit:
c5edb157405883dc7c869beb2c1e05cefe325fdf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
properly handle handshake failures
If a TLS handshake fails there's nothing we can do, so don't attempt
to reply an error (the connected client is not speaking Gemini as
it's not using TLS at all) and instead just close the connection.
Fixes issue #13