Bläddra i källkod

socket: Add a simple println when SendQ exceeded, config comment update

tags/v0.7.0
Daniel Oaks 7 år sedan
förälder
incheckning
f5536d7945
2 ändrade filer med 2 tillägg och 0 borttagningar
  1. 1
    0
      irc/socket.go
  2. 1
    0
      oragono.yaml

+ 1
- 0
irc/socket.go Visa fil

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

+ 1
- 0
oragono.yaml Visa fil

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

Laddar…
Avbryt
Spara