Problem with client-side PING #9

Closed
opened 2025-08-16 18:32:29 -07:00 by swee · 1 comment
Owner

TCP logs:
ZNC sends

PING 1733847626047\r\n

IRCd sends

:swee.codes PONG swee.codes :1733847626047\r\n

ZNC sends

PING 1733847626047\r\n

IRCd sends

:swee.codes PONG swee.codes :1733847626047\r\n

ZNC sends

PING 1733847626047\r\n

IRCd sends

:swee.codes PONG swee.codes :1733847626047\r\n

A few seconds later, ZNC sends

PING 1733847626047\r\nPING 1733847626047\r\nPING 1733847626047\r\nPING 1733847626047\r\nPING 1733847626047\r\nPING 1733847626047\r\n

IRCd sends

:swee.codes PONG swee.codes :1733847626047\r\n
:swee.codes PONG swee.codes :1733847626047\r\n
:swee.codes PONG swee.codes :1733847626047\r\n
:swee.codes PONG swee.codes :1733847626047\r\n
:swee.codes PONG swee.codes :1733847626047\r\n
:swee.codes PONG swee.codes :1733847626047\r\n

All lines in different send() functions
A few mins while spam pinging, ZNC quits.

<*status> Disconnected from IRC. Reconnecting...
<*status> Connected!

How to fix? Did I do something wrong with server PONG?

TCP logs: ZNC sends ``` PING 1733847626047\r\n ``` IRCd sends ``` :swee.codes PONG swee.codes :1733847626047\r\n ``` ZNC sends ``` PING 1733847626047\r\n ``` IRCd sends ``` :swee.codes PONG swee.codes :1733847626047\r\n ``` ZNC sends ``` PING 1733847626047\r\n ``` IRCd sends ``` :swee.codes PONG swee.codes :1733847626047\r\n ``` A few seconds later, ZNC sends ``` PING 1733847626047\r\nPING 1733847626047\r\nPING 1733847626047\r\nPING 1733847626047\r\nPING 1733847626047\r\nPING 1733847626047\r\n ``` IRCd sends ``` :swee.codes PONG swee.codes :1733847626047\r\n :swee.codes PONG swee.codes :1733847626047\r\n :swee.codes PONG swee.codes :1733847626047\r\n :swee.codes PONG swee.codes :1733847626047\r\n :swee.codes PONG swee.codes :1733847626047\r\n :swee.codes PONG swee.codes :1733847626047\r\n ``` All lines in different send() functions A few mins while spam pinging, ZNC quits. ``` <*status> Disconnected from IRC. Reconnecting... <*status> Connected! ``` How to fix? Did I do something wrong with server PONG?
Author
Owner

Apparently, Client-side PING wasn’t the issue, the server marks the client as “ping pending” AFTER PINGING, so the client sends PONG before it was marked.

The spam pinging is normal ZNC behavior it seems.

I have fixed this problem, thank you all (people from IRC) for the support, and sorry for the misunderstanding. :,3

Commits that fixed the problem:

Apparently, Client-side PING wasn’t the issue, the server marks the client as “ping pending” AFTER PINGING, so the client sends PONG before it was marked. The spam pinging is normal ZNC behavior it seems. I have fixed this problem, thank you all (people from IRC) for the support, and sorry for the misunderstanding. :,3 Commits that fixed the problem: - f67203ceb2 - 25fda4534d
swee closed this issue 2025-08-16 18:32:56 -07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: swee/IRCat#9
No description provided.