forked from External/ergo
socket: Add a simple println when SendQ exceeded, config comment update
This commit is contained in:
parent
c3be2d0d46
commit
f5536d7945
2 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue