]> arthur.barton.de Git - ngircd.git/commitdiff
Revert "Set the "last data" time to "last ping" time when updating the latter"
authorAlexander Barton <alex@barton.de>
Sun, 24 May 2020 21:24:51 +0000 (23:24 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 25 May 2020 20:59:00 +0000 (22:59 +0200)
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 79a917f954bef8089967786bd3597a6e5ff5c336.

src/ngircd/conn-func.c

index 4a2d32d6a70bcb270981da9b671acc99c6630df3..72d38b8621ff559c9c93903989e7c091b018be79 100644 (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);
 }
 
 /*