soju 0.2.0 on FreeBSD 13/amd64 when accessed over WireGuard (in TLS mode) with weechat/catgirl fails to connect properly

After upgrading to 0.2.0, weechat (and catgirl) IRC clients both running on GNU/Linux is failing to connect (over wireguard + TLS) to a soju instance (hosted in a VPS, ~80ms away).

Debug output on soju ( side:

2021/09/18 20:45:38 downstream "": new connection                                                                  
2021/09/18 20:45:38 downstream "": failed to read IRC command: read tcp> i/o time

out 2021/09/18 20:45:38 downstream "": connection closed

On weechat side:

irc: reading data on socket: error -110 The TLS connection was non-properly terminated.

Soju configuration https://paste.sr.ht/~abbe/8073a12ba083b34fdda9fd8797f9331222c3e68b

gnutls-cli output: https://paste.sr.ht/~abbe/0e9e7342eb249d268bdbf2dbea388412892d8317

It's the soju side which tears down the TCP connection (i.e. sends FIN). Accessing over direct TCP (non-wireguard in TLS mode) seems to work fine.

As mentioned on IRC channel, git revision 0f2f4de2 seems to work fine as expected, but not the git revision 8adf65ad.


Assigned to
1 year, 2 months ago
1 year, 2 months ago
No labels applied.

~emersion REPORTED FIXED 1 year, 2 months ago

This patch is now merged.

Register here or Log in to comment, or comment via email.