From f5536d794591619f9f905c22508805a890e6e2dd Mon Sep 17 00:00:00 2001 From: Daniel Oaks Date: Thu, 23 Mar 2017 12:12:39 +1000 Subject: [PATCH] socket: Add a simple println when SendQ exceeded, config comment update --- irc/socket.go | 1 + oragono.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/irc/socket.go b/irc/socket.go index e4e4806d..95952c40 100644 --- a/irc/socket.go +++ b/irc/socket.go @@ -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 } diff --git a/oragono.yaml b/oragono.yaml index 5d8cbf7f..f176d1e0 100644 --- a/oragono.yaml +++ b/oragono.yaml @@ -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