aboutsummaryrefslogtreecommitdiffstats
path: root/ethwire
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-07 19:58:20 +0800
committerobscuren <geffobscura@gmail.com>2014-07-07 19:58:20 +0800
commit890745e8469b3d6ee7175db94edfb618b6bc8bc5 (patch)
tree9929ed54c08b31ab4393cad8271e78d3beb31085 /ethwire
parent68fba4b781652c0181ca58cf176e96a303acffe4 (diff)
downloaddexon-890745e8469b3d6ee7175db94edfb618b6bc8bc5.tar
dexon-890745e8469b3d6ee7175db94edfb618b6bc8bc5.tar.gz
dexon-890745e8469b3d6ee7175db94edfb618b6bc8bc5.tar.bz2
dexon-890745e8469b3d6ee7175db94edfb618b6bc8bc5.tar.lz
dexon-890745e8469b3d6ee7175db94edfb618b6bc8bc5.tar.xz
dexon-890745e8469b3d6ee7175db94edfb618b6bc8bc5.tar.zst
dexon-890745e8469b3d6ee7175db94edfb618b6bc8bc5.zip
Increased timeout
Diffstat (limited to 'ethwire')
-rw-r--r--ethwire/messaging.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethwire/messaging.go b/ethwire/messaging.go
index 5319d0711..a2e0651dc 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(50 * time.Millisecond))
+ conn.SetReadDeadline(time.Now().Add(200 * time.Millisecond))
// Create a new temporarily buffer
b := make([]byte, 1440)
// Wait for a message from this peer