[tor-commits] [meek/master] Document turnaroundTimeout.
dcf at torproject.org
dcf at torproject.org
Tue Apr 15 23:28:07 UTC 2014
commit f5d9da222efc2de97c82b2b3386d9041149a02d3
Author: David Fifield <david at bamsoftware.com>
Date: Tue Apr 15 16:26:04 2014 -0700
Document turnaroundTimeout.
---
meek-server/meek-server.go | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meek-server/meek-server.go b/meek-server/meek-server.go
index 697c153..c7d7e41 100644
--- a/meek-server/meek-server.go
+++ b/meek-server/meek-server.go
@@ -22,6 +22,8 @@ import "git.torproject.org/pluggable-transports/goptlib.git"
const ptMethodName = "meek"
const minSessionIdLength = 32
const maxPayloadLength = 0x10000
+// How long we try to read something back from the ORPort before returning the
+// response.
const turnaroundTimeout = 10 * time.Millisecond
// Passed as ReadTimeout and WriteTimeout when constructing the http.Server.
const readWriteTimeout = 10 * time.Second
More information about the tor-commits
mailing list