Parcourir la source

ws: Up the read/write buffer size

tags/v0.7.0
Daniel Oaks il y a 7 ans
Parent
révision
542503f63e
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      irc/websocket.go

+ 2
- 2
irc/websocket.go Voir le fichier

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

Chargement…
Annuler
Enregistrer