diff options
| author | David Kingston <deathking1337@aim.com> | 2009-04-24 00:01:37 -0500 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2009-04-23 21:39:45 +0200 |
| commit | 9b59f043c8bc0eb0e88cb31158c61cccdf67f23b (patch) | |
| tree | 48eab78fb57ad47706ac522839f85b6c2e5ed7ad /src | |
| parent | b545d38ae4458257be4de9031d4d3501690ced9c (diff) | |
| download | ngircd-9b59f043c8bc0eb0e88cb31158c61cccdf67f23b.tar.gz ngircd-9b59f043c8bc0eb0e88cb31158c61cccdf67f23b.zip | |
allow ping timeout quit messages to show the timeout value
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conn.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index eacbe5ae..9752a619 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -1540,6 +1540,7 @@ Check_Connections(void) * if this doesn't help either, disconnect client. */ CLIENT *c; CONN_ID i; + char msg[64]; for (i = 0; i < Pool_Size; i++) { if (My_Connections[i].sock < 0) @@ -1559,8 +1560,8 @@ Check_Connections(void) LogDebug ("Connection %d: Ping timeout: %d seconds.", i, Conf_PongTimeout); - Conn_Close(i, NULL, "Ping timeout", - true); + snprintf(msg, sizeof(msg), "Ping timeout: %d seconds", Conf_PongTimeout); + Conn_Close(i, NULL, msg, true); } } else if (My_Connections[i].lastdata < time(NULL) - Conf_PingTimeout) { |