]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Enhance logging on "write buffer overflow"
authorAlexander Barton <alex@barton.de>
Sat, 12 Feb 2011 22:24:26 +0000 (23:24 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 12 Feb 2011 22:24:26 +0000 (23:24 +0100)
src/ngircd/conn.c

index 032a6e91e08b83f41bfd220ad8d527ddeb76f6c1..e92240b6ff1548732f53e7d09e236b2a42ed23a9 100644 (file)
@@ -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;