1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-27 20:36:18 +00:00

Revert "Set the "last data" time to "last ping" time when updating the latter"

This patch completely broke the PING-PONG logic: now ngIRCd never
disconnects any stale peers but keeps sending out PINGs over and over
again ...

The real issue (server disconnects right after connect) will be fixed in
the next commit, but let's revert to the somewhat "half-broken but
'known' state" first ...

This reverts commit 79a917f954.
This commit is contained in:
Alexander Barton 2020-05-24 23:24:51 +02:00
parent bae68eb612
commit 0d503945cb

View File

@ -51,7 +51,7 @@ GLOBAL void
Conn_UpdatePing(CONN_ID Idx)
{
assert(Idx > NONE);
My_Connections[Idx].lastping = My_Connections[Idx].lastdata = time(NULL);
My_Connections[Idx].lastping = time(NULL);
}
/*