From ebf9403872809d3310451f4a86d5910185407d80 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Fri, 15 May 2015 05:45:07 +0200
Subject: degesch: send PINGs with a timestamp
Instead of a username which is of no use to us.
Maybe some servers require the argument to be a target but the purpose of this
message is mainly to detect a failed connection at all, and that happens way
faster when you send some data.
---
degesch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/degesch.c b/degesch.c
index c48d43a..6e30bbf 100644
--- a/degesch.c
+++ b/degesch.c
@@ -3108,7 +3108,7 @@ on_irc_timeout (void *user_data)
{
// Provoke a response from the server
struct server *s = user_data;
- irc_send (s, "PING :%s", s->irc_user->nickname);
+ irc_send (s, "PING :%" PRIi64, (int64_t) time (NULL));
}
// --- Processing server output ------------------------------------------------
--
cgit v1.2.3-70-g09d2