Enhance logging on "write buffer overflow"

This commit is contained in:
Alexander Barton 2011-02-12 23:24:26 +01:00
parent 493ccd57f4
commit 477224be5c
1 changed files with 2 additions and 2 deletions

View File

@ -906,8 +906,8 @@ Conn_Write( CONN_ID Idx, char *Data, size_t Len )
if (array_bytes(&My_Connections[Idx].wbuf) + Len >= if (array_bytes(&My_Connections[Idx].wbuf) + Len >=
writebuf_limit) { writebuf_limit) {
Log(LOG_NOTICE, Log(LOG_NOTICE,
"Write buffer overflow (connection %d, size %lu byte)!", "Write buffer overflow (connection %d, limit is %lu bytes, %lu bytes new, %lu bytes pending)!",
Idx, Idx, writebuf_limit, Len,
(unsigned long)array_bytes(&My_Connections[Idx].wbuf)); (unsigned long)array_bytes(&My_Connections[Idx].wbuf));
Conn_Close(Idx, "Write buffer overflow!", NULL, false); Conn_Close(Idx, "Write buffer overflow!", NULL, false);
return false; return false;