Browse Source

ws: Up the read/write buffer size

tags/v0.7.0
Daniel Oaks 7 years ago
parent
commit
542503f63e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      irc/websocket.go

+ 2
- 2
irc/websocket.go View File

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

Loading…
Cancel
Save