diff options
| author | Alexander Barton <alex@barton.de> | 2011-02-12 23:24:26 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2011-02-12 23:24:26 +0100 |
| commit | 477224be5c0d5e117d26d1181647bf9697c12c79 (patch) | |
| tree | 46e3ebe6e8b253c0884e821e5a7de1bf4b5ba33e /src | |
| parent | 493ccd57f41bea8c9bca5311ca597b37fadc9e7f (diff) | |
| download | ngircd-477224be5c0d5e117d26d1181647bf9697c12c79.tar.gz ngircd-477224be5c0d5e117d26d1181647bf9697c12c79.zip | |
Enhance logging on "write buffer overflow"
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/conn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 032a6e91..e92240b6 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -906,8 +906,8 @@ Conn_Write( CONN_ID Idx, char *Data, size_t Len ) if (array_bytes(&My_Connections[Idx].wbuf) + Len >= writebuf_limit) { Log(LOG_NOTICE, - "Write buffer overflow (connection %d, size %lu byte)!", - Idx, + "Write buffer overflow (connection %d, limit is %lu bytes, %lu bytes new, %lu bytes pending)!", + Idx, writebuf_limit, Len, (unsigned long)array_bytes(&My_Connections[Idx].wbuf)); Conn_Close(Idx, "Write buffer overflow!", NULL, false); return false; |