aboutsummaryrefslogtreecommitdiffstats
path: root/ethwire/messaging.go
diff options
context:
space:
mode:
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 f13b72353..5319d0711 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(500 * time.Millisecond))
+ conn.SetReadDeadline(time.Now().Add(50 * time.Millisecond))
// Create a new temporarily buffer
b := make([]byte, 1440)
// Wait for a message from this peer