Przeglądaj źródła

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

tags/v0.7.0
Daniel Oaks 7 lat temu
rodzic
commit
f5536d7945
2 zmienionych plików z 2 dodań i 0 usunięć
  1. 1
    0
      irc/socket.go
  2. 1
    0
      oragono.yaml

+ 1
- 0
irc/socket.go Wyświetl plik

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

+ 1
- 0
oragono.yaml Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz