Enhance logging on "write buffer overflow"
This commit is contained in:
parent
493ccd57f4
commit
477224be5c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue