瀏覽代碼

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…
取消
儲存