diff options
author | Eric Wong <e@80x24.org> | 2021-11-02 09:24:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-11-02 11:13:46 +0000 |
commit | f872a5e602a806c206019eaf0654abebba086f36 (patch) | |
tree | 70d375d55935db5ba36bab9f9b09f3e741f60b83 /lib/PublicInbox/LeiMailDiff.pm | |
parent | bcc02b78e322f87d942459de874ba68b3fc06c39 (diff) | |
download | public-inbox-f872a5e602a806c206019eaf0654abebba086f36.tar.gz |
And improve reliability while we're at it. It seems closing a TCP listen socket on FreeBSD 12.2 doesn't cause connect()-ing clients to fail. This happens regardless of whether a socket is IPv4 or IPv6 This non-failure was causing tests to timeout slowly on the client side instead of failing immediately. We now fork a new process which does nothing but accept() + shutdown() to emulate a dead server. Reliability improves on all OSes since there's never a point in time when another process can bind the socket.
Diffstat (limited to 'lib/PublicInbox/LeiMailDiff.pm')
0 files changed, 0 insertions, 0 deletions