diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-06-11 19:30:19 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-06-11 19:30:19 +0100 |
commit | 1979b37e4fa3c9b7ed8784cf8b52cfae74edd9a4 (patch) | |
tree | 1c71fc8430b4bb49503aaf91b1d738717c19a47e /message.c | |
parent | c80ce9eceb6412225bfa3a62bc557b17147119f7 (diff) |
Send a PING to the server before assuming a timeout is definite.
Diffstat (limited to 'message.c')
-rw-r--r-- | message.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |