3 ms·
Sounds like your client wasn't configured to send periodic PINGs. Usually you set your client to send a PING every 30-60s, and disconnect if there is no server
by Arnavion 6y ago
Sounds like your client wasn't configured to send periodic PINGs. Usually you set your client to send a PING every 30-60s, and disconnect if there is no server PONG for two to four times the ping interval. That way you have an upper bound on what messages from you may not have reached the server. (IRC is over TCP, so if a server sends a PONG for a PING, then every message you sent before that PING has reached the server.)
- rtpg 6y agoThis is unlikely to be the case. Almost all servers out there require fairly frequent ping/pongs and if your client doesn't work right it'll just be entirely unusable (like "disconnect every 5 minutes")
- caf 6y agoIRC servers do not require PINGs from the client. What they typically require is a message of some sort sent regularly from the client, and if they haven't received anything in a while, they'll send a PING to elicit a response from the client (if it's still alive). Most servers don't even check that the PONG matches the PING they sent, they're just happy to get something back before the timeout, although there are servers that send a cookie in a PING at connect time that they require to be reflected back correctly as a countermeasure for certain kinds of proxy abuse. For example, EPIC is one of the oldest clients and it doesn't send its own PING messages unless scripted to do so, and it works fine.
- bArray 6y ago> although there are servers that send a cookie in a PING at > connect time that they require to be reflected back > correctly as a countermeasure for certain kinds of proxy > abuse. That tripped me up when writing an IRC bot - it worked on many servers but failed on one particular server that sent the PING cookies.
- rtpg 6y agoI stand corrected, I might be misremembering experiences from trying to write IRC boys, like sibling. Thanks for the clarification