[tor-commits] [flashproxy/master] Increase maximum message size to 64 KB.

dcf at torproject.org dcf at torproject.org
Thu Jul 18 03:16:08 UTC 2013


commit a0991bc1ba646bf74ab07532df36ad5271e8c86f
Author: David Fifield <david at bamsoftware.com>
Date:   Wed Jul 17 20:15:13 2013 -0700

    Increase maximum message size to 64 KB.
    
    Testing obfs3-in-websocket was reliably failing at 50% bootstrapped with
    a message of about 30 KB.
---
 websocket-transport/websocket-server.go |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/websocket-transport/websocket-server.go b/websocket-transport/websocket-server.go
index f5fed31..655cf7b 100644
--- a/websocket-transport/websocket-server.go
+++ b/websocket-transport/websocket-server.go
@@ -22,7 +22,7 @@ import (
 const ptMethodName = "websocket"
 const requestTimeout = 10 * time.Second
 // 16 kilobytes, possibly base64-encoded.
-const maxMessageSize = 16*1024*4/3 + 1
+const maxMessageSize = 64*1024*4/3 + 1
 
 var logFile = os.Stderr
 



More information about the tor-commits mailing list