Commits
- Commit:
1b7a3cb7967ecbc9dda25feadab718cecc77b335
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
set close-on-exec flag on gotd socket to avoid it leaking during reloads
- Commit:
a631263a240217668a3f9e15bef0630795b1a197
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
avoid double-close of gotd_reload_conf_fd
- Commit:
dd8ecf5df0ea15e94d6cd50709a4229314135bb7
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
in gotsys-apply-conf, avoid using a -1 socket fd if gotd is not running
- Commit:
69af22426b49f6e67faa91eea328bbb491e9028b
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: set next version
- Commit:
bf3185803e62d0c683e70ae9e3924b80387814d2
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: release 0.110
- Commit:
ac1a0b445e16cc09128e2ae2b6692d209bb5e81c
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: macos: SOCK_CLOEXEC
- Commit:
bc18ef3a6de192846f4f2c35aee0012f0dd27afb
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: define _PW_NAME_LEN
This portablu adds a definition for _PW_NAME_LEN if it's not found.
Additionally, make socket options portable, and ensure gotctl is now
buildable, as this has changed with respect to gotd, adding logging,
etc.
- Commit:
11b08149fcd8763628621149e6957161ac236fef
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
Xr gotctl and document SIGHUP issue
- Commit:
b148e63d1f09f60fc25d5a6e2c76e126c9827c2d
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
implement reload support in gotd, triggered via gotctl reload
Reload must be triggered via 'gotctl reload' rather than SIGHUP because
once gotd has dropped root privileges the gotd-secrets.conf file becomes
permanently inaccessible. When SIGHUP is received gotd now logs a message
which points the user at 'gotctl reload'.
- Commit:
cd1db57e49723e38c55e6b86cc8123fecd389ee7
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
set close-on-exec flag on client connections in gotd parent process
Ensures that existing clients will be properly disconnected once the
gotd reload feature is introduced.
- Commit:
edca7a667dcb5e2698b6729aece8d0afadcbc805
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
remove closefrom() in gotd when gotsys is run
closefrom doesn't have the desired effect as it may affect unrelated open
files in the parent process. The right way to deal with this seems to be
setting the close-on-exec flag on file descriptors instead.
- Commit:
80c9647f807399e8d8bed8a18109a87ea8222f56
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
drop pointless imsgbuf_allow_fdpass() calls from gotctl
- Commit:
841cedb75f273e076cacf79500e51e4748b8f876
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
merge two subsequent if (proc_id == GOTD_PROC_GOTD) blocks.
- Commit:
5b15f42b17e137a40cb6b46a69f24a853e4aa35b
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
only the gotd parent process is able to drop root privs, make this more obvious
- Commit:
22b4547217ce327a408d607b845fd955be9f0446
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
we can now greatly simplify the conditional which guards reading of gotd.conf
- Commit:
e49ea032f80f15db7a7534b3ad0f5bfd0aae321c
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
send request timeout to session_read so it no longer needs to read gotd.conf
Also stop reading gotd.conf in repo_read, which is a trivial no-op.
- Commit:
ef5d8d39c705b2d3ec3cd7d009fc5d815ee28b75
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
make gotd session_write actually use the request timeout from gotd.conf
- Commit:
b11b05b7ee0fbffb5aabb6aaed72b1c7656198eb
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
remove duplicate break statement
- Commit:
2880100ab9ccb2f797b41e2c8c615e947eb42f77
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
send notification targets to notify process
This removes the need for the notify process to read gotd.conf,
ensuring consistent run-time behaviour when gotd.conf is edited
while gotd is running.
- Commit:
8b10295ec9ddde4f3bfef322b31d3601d6040c62
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
send notification configuration to the gotd session_write process
This allows the session_write process to work without reading gotd.conf.
Again, we gain consistent run-time behaviour since changes to the
notification configuration in gotd.conf will not take effect until gotd
is restarted. However, the notify proccess still needs the same fix.
- Commit:
4fd3ab65db81313a54815adef56b05709e08fce6
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
cache our local repository name, not the name sent by the client
- Commit:
a88930cc79d815481e4845c0f90b6cde777e228e
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
small tweak to the output of gotctl info for clarity
- Commit:
1ca965ba4c9a64871f00758c02f279d158cd6820
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
keep disconnecting gotd clients when important child processes exit
This should fix a regression introduced in
commit dda4473541d84973dd43a16f2f79ff0ce5f93dfe (make gotd run 'gotsys check'
on gotsys.conf commits before accepting them), where I removed a call to
the disconnect() function in proc_done(). We have now observed stale client
sessions accumulating on got.gameoftrees.org, blocking new connections from
anonymous users. This commit fixes the most likely reason for that issue.
- Commit:
fa94c02250118210d63c5161d74c7783e009edcb
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
in gotctl info, display the time when a client connection was created
Also ensure that the repository name will always be displayed. Once the
repo/session processes had exited the repository name was no longer
available. Cache it in the client data structure to avoid losing it.
- Commit:
828d68105770c54c5b80da5adca20224547f14de
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
log auth child errors in gotd parent process when not disconnecting clients