- edited description
IRC client should actively ping regularly
Lots of IRC daemons expect client-initiated pings, and scale back server-initiated pings as a result. Clients that fail to do this might get marked as inactive and kicked.
Has the nice side-effect of fixing the sleep/wake problem with sockets that are apparently open, but actually dead. When a client-initiated ping happens on a socket in that state, it will actively fail.
60 seconds might be a sensible default.
Comments (5)
-
reporter -
repo owner Are we expected to ping with specific content?
e.g. can we send ":ping :some random characters" or do we have to send ":ping :bia.imaginarynet.org.uk" or some such?
-
reporter There is no expectation, other than you get back what you send as a token. A few random characters is probably safest, but I never had any issues with using "idle" in Warren.
-
repo owner I'll probably just use a short uuid
-
repo owner - changed status to resolved
Working in a simple way, probably wants more thought down the line.
- Log in to comment