Commits
- Commit:
d5c153d0d827ef4993f41fca5a6eff8736e85a76
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: remove previd and prevset query string parameter
They're no longer used.
- Commit:
9ba23f168f80cb5a70c47b1a937de20515bfc118
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: delete dead code
at this point we can't know if the client has disconnected, we just
finished parsing the fcgi parameters and started handling the reply.
We'll know whether the client disconnected only later, while trying
to send the page content.
- Commit:
913884630c0a521173d2d370912867d3010d5f66
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: use the last matching fastcgi parameter
in case of multiple parameters with the same name, use the last
matching one.
- Commit:
addd8d40708de74e3dcbfb6962a12f29189e674e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix confusing error message from 'got commit' upon uncommitable paths
- Commit:
c89c70b628c1825024e333214392011409d71184
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got{web,}d: handle multiple -v
only fatal*() and log_warn*() are now logged by default. log_info()
is hidden behind a -v and log_debug behind -vv. Makes gotd and
gotwebd way less chatty.
ok stsp@
- Commit:
2a83fef7ce7879df1f318a442bb1d8d0012fa5e8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: use less temp files
Instead of allocating a whole set of temp fd per `listen' directive,
just use a global set per "sockets" process. This is fine since
gotwebd doesn't keep multiple connections open at the same time,
once it enters gotwebd_process_request() it won't exit until all
the page has been processed. (this because we don't have async
APIs for got operations.)
ok stsp@
- Commit:
da30c05a101318828faf559ea66bc6ce1f638bc8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove a redundant bounds check which gets elided by clang
found by + ok op@
- Commit:
0fa332b53c81ad34f6e60bad94ce41e14d0bffab
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove http client support from TODO list
- Commit:
5061349db34001800b847dde0b0652dc2c08fcc9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix missing error return in read_packed_object() on size_t overflow
- Commit:
9bc2ee804d400559347917989bde415da69cbc20
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: allow to change the user
ok stsp@
- Commit:
1220d7ea84811c79f71a7f24917d77cb2f10b02a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got{,web}d: unify log.c
gotd and gotwebd are using almost the same log.c file, so unify.
This only slightly changes gotwebd logs to include the process name,
like gotd.
ok stsp@
- Commit:
c6458e88f5a9085ec9206a60b93a713138b9b2fa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: mention the listening socket path under FILES
ok stsp@
- Commit:
c16cda05743b8a017d150757f0b9da0bc5bffa83
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: remove unix_socket_name
Now that `listen' is a top-level, `unix_socket_name' is useless.
The default socket remains /var/www/run/gotweb.sock, to listen on
an alternate socket now `listen on socket "/some/other/sock" can
be used.
part of a larger diff that's ok stsp@
- Commit:
d68a7b14eb6995f6fc4c877ea24276f6b0174f85
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: make `listen' a top-level statement
gotwebd only uses the server name (i.e. the Host HTTP header) to
match the server blocks. Since gotwebd by design sits behind an
http server which is expected to filter virtual hosts, there's
little point in having `listen' per-server.
part of a larger diff that's ok stsp@
- Commit:
0f88252c795396951ad9bcf40c534b5852dc5e28
- From:
- Omar Polo <op@omarpolo.com>
- Date:
adjust gotwebd.conf(5) after recent change
it's no longer required for the host:port tuple to be used only by one
server.
- Commit:
360794246d58ac20752da51536158584a51d1478
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: simplify handling of unix sockets
- don't assume an implicit "listen on socket" when another listen was
specified in a server block
- allow servers to share the sockets they're listening on
- fix unix_socket_name; now it's actually used
- remove `listen on socket off' and `unix_socket off' options that
are now no longer useful
- unify the internal handling of the sockets, i.e. don't consider
unix socket special.
ok tracey@
- Commit:
eb916dafa2967bc60a8996ea7cc0a23a661ed88e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: plug leak in get_addrs() error path
h is free'd by add_addr in case of error, but we still leak the
getaddrinfo result. while here make the check strictier: addr_addr()
fails with -1.
- Commit:
a3844d7a3c9a386d7bc73fb0152fa714533a7e91
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got-fetch-http: be pedantic with the error checking
these functions are expected to return -1 on failure, be strict
about it.
- Commit:
a46b549764762c6d1ef465471d38ed2d5e152543
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix function name in error message (again)
- Commit:
454711903eeb8fe10dcb57e44a50b268eb3e6463
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bufio: crank BIO_CHUNK up to 64k
forgot it set to a low value when testing the resizing, the left
way too low. prodded by stsp.
ok stsp
- Commit:
45c5bd12280f38df8ce2cf82d06beeb15ed80aca
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix function name in error message
- Commit:
eb7e80a7111220df61c48a0bb0e87f342baf442d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix got-fetch-http build with PROFILE=1
- Commit:
0bd5fb752a05f0d096e2d9d0d11e1b02b4804849
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix wrong errno check in bufio_close_sync()
ok thomas_adam, op@
- Commit:
53c54f2220fc0893aa81f79860a50abc0940600c
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
regress: replace userinfo(8) with the more common getent(1)
- Commit:
5a4304006707470fa37d4bf797a46adc0a0216ea
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
regress: make server tests more robust against race hazard
Add a delay after starting the server background process to keep
server and client from racing against each other, which would lead
to failures when the client ran before the server.
ok op