mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-13 10:20:28 +00:00
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 >=
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user