Commits
- 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
- Commit:
50ccbcd9a6e4786d4eb726ac8bc3e8565fd7aa48
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
log hostname and port when gotd notification helpers fail to connect
ok op@
- Commit:
a2f6db49f7f748763b9244ca6166389f07d1885d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
gotd regress also needs p5-httpd-daemon
- Commit:
d208476149136973828c1e0fa110d8e51cf6d0c3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
forgot to hook up the new tests added with fix for empty notifications
- Commit:
15ff48f3a4567fbd4e399927ef2cd565ff19421f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix Date header generated by got-notify-email
asctime_r() is not a source of valid date strings for email.
Borrow code from OpenSMTPD instead for this purpose.
Problem reported by naddy, who also found the smtpd code to use.
- Commit:
1ddd9d55d5c5f0e3df1e0f102ebbd8c9b420a0fb
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
display abbreviated commit/tag IDs in email notification subject lines
This should make it somewhat easier to keep track of discussion threads
when someone replies to a commit notification to discuss the changes.
- Commit:
eec627068f6ed6729b1a075b6052d0e076367838
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix empty notification messages with multiple gotd notification targets
When multiple notification targets are configured only the first target
received notification message content. The subsequent targets would read
EOF when trying to read the content. Fix this issue and add regression
test coverage for it, exercising existing test code with a gotd.conf file
which contains two notification targets.
- Commit:
9ea071aa8277616ed7e94d4f369ea6988a8aacfd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
mark gotd http-notifications todo item as done
- Commit:
9c574a767ec39853cd7c624009e002b8e40030a7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
don't leak the existence of gotd repositories to unrelated user accounts
In particular, this prevents anonymous user accounts from discovering
the existence of other private repositories served by gotd by correctly
guessing the name of a private repository. They still wouldn't have read
or write access but in some cases even knowledge about the existence of
a particular repository could be cause for concern.
ok op@
- Commit:
d59a1c3b458751abda83fa864629003ee9b6ddad
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
in gotd.8 add an example which illustrates how to create repositories for gotd
- Commit:
27b8b8653569e89544f7d13837918fbe34dcb5f9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
gotd regress: fix tests which started failing as of version number 0.100