Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

IRC 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.



> 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.


I stand corrected, I might be misremembering experiences from trying to write IRC boys, like sibling. Thanks for the clarification




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: