diff options
author | zelig <viktor.tron@gmail.com> | 2014-07-15 01:50:06 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2014-07-15 01:50:06 +0800 |
commit | 3d5db7288f134fef7e51b25776007705f6663654 (patch) | |
tree | edda6e8fd23584327473058411df9cd2c53241f4 /ethwire/messaging.go | |
parent | dc11b5c55e2888a7a3dac51fedc3864d112136ce (diff) | |
parent | 8845fb7eae3e51fd3e55c47c377bf1a9e0cfe2a9 (diff) | |
download | go-tangerine-3d5db7288f134fef7e51b25776007705f6663654.tar go-tangerine-3d5db7288f134fef7e51b25776007705f6663654.tar.gz go-tangerine-3d5db7288f134fef7e51b25776007705f6663654.tar.bz2 go-tangerine-3d5db7288f134fef7e51b25776007705f6663654.tar.lz go-tangerine-3d5db7288f134fef7e51b25776007705f6663654.tar.xz go-tangerine-3d5db7288f134fef7e51b25776007705f6663654.tar.zst go-tangerine-3d5db7288f134fef7e51b25776007705f6663654.zip |
merge upstream
Diffstat (limited to 'ethwire/messaging.go')
-rw-r--r-- | ethwire/messaging.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethwire/messaging.go b/ethwire/messaging.go index 5319d0711..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(50 * 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 |