aboutsummaryrefslogtreecommitdiffstats
path: root/ethwire/messaging.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-10 21:03:48 +0800
committerobscuren <geffobscura@gmail.com>2014-07-10 21:03:48 +0800
commitbea468f1e595e3de9c8c479e9151c28f0f102973 (patch)
treee12813b65b3a945b1f543c8732ccaf522e771c98 /ethwire/messaging.go
parent639f1fd3396419fb712b875cfacc333538fcc4f3 (diff)
downloaddexon-bea468f1e595e3de9c8c479e9151c28f0f102973.tar
dexon-bea468f1e595e3de9c8c479e9151c28f0f102973.tar.gz
dexon-bea468f1e595e3de9c8c479e9151c28f0f102973.tar.bz2
dexon-bea468f1e595e3de9c8c479e9151c28f0f102973.tar.lz
dexon-bea468f1e595e3de9c8c479e9151c28f0f102973.tar.xz
dexon-bea468f1e595e3de9c8c479e9151c28f0f102973.tar.zst
dexon-bea468f1e595e3de9c8c479e9151c28f0f102973.zip
Increased timeout to 500ms
Diffstat (limited to 'ethwire/messaging.go')
-rw-r--r--ethwire/messaging.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethwire/messaging.go b/ethwire/messaging.go
index a2e0651dc..f13b72353 100644
--- a/ethwire/messaging.go
+++ b/ethwire/messaging.go
@@ -279,7 +279,7 @@ func ReadMessages(conn net.Conn) (msgs []*Msg, err error) {
var totalBytes int
for {
// Give buffering some time
- conn.SetReadDeadline(time.Now().Add(200 * time.Millisecond))
+ conn.SetReadDeadline(time.Now().Add(500 * time.Millisecond))
// Create a new temporarily buffer
b := make([]byte, 1440)
// Wait for a message from this peer