瀏覽代碼

ws: Up the read/write buffer size

tags/v0.7.0
Daniel Oaks 7 年之前
父節點
當前提交
542503f63e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      irc/websocket.go

+ 2
- 2
irc/websocket.go 查看文件

12
 )
12
 )
13
 
13
 
14
 var upgrader = websocket.Upgrader{
14
 var upgrader = websocket.Upgrader{
15
-	ReadBufferSize:  1024,
16
-	WriteBufferSize: 1024,
15
+	ReadBufferSize:  2048,
16
+	WriteBufferSize: 2048,
17
 	// If a WS session contains sensitive information, and you choose to use
17
 	// If a WS session contains sensitive information, and you choose to use
18
 	// cookies for authentication (during the HTTP(S) upgrade request), then
18
 	// cookies for authentication (during the HTTP(S) upgrade request), then
19
 	// you should check that Origin is a domain under your control. If it
19
 	// you should check that Origin is a domain under your control. If it

Loading…
取消
儲存