Commits
- 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
- Commit:
eac9287d295719131cbc346503dd2a0612e54b4b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
copyright years++
- Commit:
df6282815f8ffb0b967b818d15129a63c3b95058
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove unused global flag
- Commit:
aa30aaedc819776e80078811ba0fd896c7216405
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't match host if connecting from the wrong socket
limit how one given virtual host can be reached based on its `listen
on' lists