mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
socket: Add a simple println when SendQ exceeded, config comment update
This commit is contained in:
parent
c3be2d0d46
commit
f5536d7945
@ -148,6 +148,7 @@ func (socket *Socket) RunSocketWriter() {
|
|||||||
}
|
}
|
||||||
if socket.MaxSendQBytes < sendQBytes {
|
if socket.MaxSendQBytes < sendQBytes {
|
||||||
socket.conn.Write([]byte("\r\nERROR :SendQ Exceeded\r\n"))
|
socket.conn.Write([]byte("\r\nERROR :SendQ Exceeded\r\n"))
|
||||||
|
fmt.Println("SendQ exceeded, disconnected client")
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,6 +66,7 @@ server:
|
|||||||
motd: oragono.motd
|
motd: oragono.motd
|
||||||
|
|
||||||
# maximum length of clients' sendQ in bytes
|
# maximum length of clients' sendQ in bytes
|
||||||
|
# this should be big enough to hold /LIST and HELP replies
|
||||||
max-sendq: 16k
|
max-sendq: 16k
|
||||||
|
|
||||||
# maximum number of connections per subnet
|
# maximum number of connections per subnet
|
||||||
|
Loading…
Reference in New Issue
Block a user