~emersion/soju#237: 
networks with same address but different name

Creating new networks, with the same addresses but different names, can cause problems with BouncerServ internals, such as network delete ircs://irc.libera.chat still being valid.

Other issues arise with a bouncer service i was using where error: context deadline exceeded started appearing when using network delete on the problematic network.

Status
REPORTED
Submitter
~sewn
Assigned to
No-one
Submitted
22 days ago
Updated
21 days ago
Labels
No labels applied.

~sewn 22 days ago

There also seems to be some soju bugs such as

2024/11/22 12:55:23 user "sewn": downstream "127.0.0.1:34714": failed to handle new registered connection: FAIL BOUNCER INVALID_NETID 3 :Unknown network ID

which i am not sure if it is a result from this issue.

~emersion 22 days ago

What would you expect to happen? Right now I think it deletes the first network which matches.

My gut feeling is that "context deadline exceeded" errors are unrelated to having multiple networks with the same name.

"Unknown network ID" are usually indicative of client bugs: they don't handle network deletion events and try reconnecting.

~sewn 21 days ago

With two networks sharing the same address, one with an explicit name and one without, I'd expect BouncerServ commands such as network delete <addr> to resolve to the network with no name, but instead resolves to the one with a name. It should prefer the name, and fallback to address, unclarified in the soju man page.

The errors (context deadline exceeded) only started appearing after the duplicate(?) network creations.

~emersion 21 days ago

The address is matched by design, this is a feature that I don't want to get rid of. Even if we wouldn't do that, there would be ambiguous cases.

~sewn 21 days ago

if that's the case, then I guess this issue can be closed as a 'will not fix' (not sure how sr.ht issues work). The other bugs mentioned here are either beyond the scope of soju or need proper reenactment .

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