Преглед изворни кода

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

tags/v0.7.0
Daniel Oaks пре 7 година
родитељ
комит
f5536d7945
2 измењених фајлова са 2 додато и 0 уклоњено
  1. 1
    0
      irc/socket.go
  2. 1
    0
      oragono.yaml

+ 1
- 0
irc/socket.go Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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

Loading…
Откажи
Сачувај