summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2020-05-24 23:24:51 +0200
committerAlexander Barton <alex@barton.de>2020-05-25 22:59:00 +0200
commit0d503945cb527e275ef6644a234a6876ff61322b (patch)
tree28369c0792d79e0da22923271edfa4061dca7528 /src
parentbae68eb612ef0d8aa515e03c1479e2a57d243dee (diff)
downloadngircd-0d503945cb527e275ef6644a234a6876ff61322b.tar.gz
ngircd-0d503945cb527e275ef6644a234a6876ff61322b.zip
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 79a917f954bef8089967786bd3597a6e5ff5c336.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn-func.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/conn-func.c b/src/ngircd/conn-func.c
index 4a2d32d6..72d38b86 100644
--- a/src/ngircd/conn-func.c
+++ b/src/ngircd/conn-func.c
@@ -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);
 }
 
 /*