summaryrefslogtreecommitdiff
path: root/src/rhimportd/ctrlWebSocket.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-06-24 04:33:56 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-06-24 04:33:56 (GMT)
commit3f38e00703caf05a1867070873c8715438b41264 (patch)
tree78eded87c035fc3f89079713f367e9bf6ce095b3 /src/rhimportd/ctrlWebSocket.go
parent03908fc8040ad92055ef1aeebedf39c6bc9b2047 (diff)
set chunk size for websocket file uploads to 40k...
Diffstat (limited to 'src/rhimportd/ctrlWebSocket.go')
-rw-r--r--src/rhimportd/ctrlWebSocket.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rhimportd/ctrlWebSocket.go b/src/rhimportd/ctrlWebSocket.go
index 6095250..4dd43a7 100644
--- a/src/rhimportd/ctrlWebSocket.go
+++ b/src/rhimportd/ctrlWebSocket.go
@@ -310,7 +310,7 @@ func webSocketSessionHandler(reqchan <-chan webSocketRequestData, binchan <-chan
func webSocketHandler(conf *rhimport.Config, db *rddb.DBChan, sessions *rhimport.SessionStoreChan, trusted bool, w http.ResponseWriter, r *http.Request) {
rhdl.Printf("WebSocketHandler: request for '%s'", html.EscapeString(r.URL.Path))
- ws, err := websocket.Upgrade(w, r, nil, 1024, 1024)
+ ws, err := websocket.Upgrade(w, r, nil, 64*1024, 64*1024)
if _, ok := err.(websocket.HandshakeError); ok {
http.Error(w, "Not a websocket handshake", 400)
return