summaryrefslogtreecommitdiff
path: root/message.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-06-11 19:30:19 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-06-11 19:30:19 +0100
commit1979b37e4fa3c9b7ed8784cf8b52cfae74edd9a4 (patch)
tree1c71fc8430b4bb49503aaf91b1d738717c19a47e /message.c
parentc80ce9eceb6412225bfa3a62bc557b17147119f7 (diff)
Send a PING to the server before assuming a timeout is definite.
Diffstat (limited to 'message.c')
-rw-r--r--message.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/message.c b/message.c
index f837b83..b021347 100644
--- a/message.c
+++ b/message.c
@@ -23,6 +23,8 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int
struct channel *channels, struct settings *settings, char tokens[MAXTOKENS][MAXDATASIZE], int counter) {
// Record that we received something from the server for timeout checking purposes
ircdstrings->lastmessagetime = time(NULL); // snprintf(NULL, 0, "%ld", timenow);
+ // And we can't be timing out
+ ircdstrings->timeoutcheck = 0;
// Server PING received? If so, send a PONG back with the next element as the argument.
if (strncmp(tokens[0], "PING", strlen(tokens[0])) == 0) {