3
0
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:
Daniel Oaks 2017-03-23 12:12:39 +10:00
parent c3be2d0d46
commit f5536d7945
2 changed files with 2 additions and 0 deletions

View File

@ -148,6 +148,7 @@ func (socket *Socket) RunSocketWriter() {
}
if socket.MaxSendQBytes < sendQBytes {
socket.conn.Write([]byte("\r\nERROR :SendQ Exceeded\r\n"))
fmt.Println("SendQ exceeded, disconnected client")
break
}

View File

@ -66,6 +66,7 @@ server:
motd: oragono.motd
# maximum length of clients' sendQ in bytes
# this should be big enough to hold /LIST and HELP replies
max-sendq: 16k
# maximum number of connections per subnet