aboutsummaryrefslogtreecommitdiffstats
path: root/ethwire
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-09-16 22:36:18 +0800
committerobscuren <geffobscura@gmail.com>2014-09-16 22:36:18 +0800
commit66e309c5c4fb1faebe7338053481024eeb55a2d1 (patch)
tree60ecb6471862f8cc83c1556ab82908c31a60dc9c /ethwire
parentfb528c47c0c51a7a204a18227349e6500aba49ab (diff)
downloaddexon-66e309c5c4fb1faebe7338053481024eeb55a2d1.tar
dexon-66e309c5c4fb1faebe7338053481024eeb55a2d1.tar.gz
dexon-66e309c5c4fb1faebe7338053481024eeb55a2d1.tar.bz2
dexon-66e309c5c4fb1faebe7338053481024eeb55a2d1.tar.lz
dexon-66e309c5c4fb1faebe7338053481024eeb55a2d1.tar.xz
dexon-66e309c5c4fb1faebe7338053481024eeb55a2d1.tar.zst
dexon-66e309c5c4fb1faebe7338053481024eeb55a2d1.zip
Up deadline to reduce cpu load
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 4f4393a9d..2161ce27f 100644
--- a/ethwire/messaging.go
+++ b/ethwire/messaging.go
@@ -96,7 +96,7 @@ func ReadMessages(conn net.Conn) (msgs []*Msg, err error) {
for {
// Give buffering some time
- conn.SetReadDeadline(time.Now().Add(5 * time.Millisecond))
+ conn.SetReadDeadline(time.Now().Add(100 * time.Millisecond))
// Create a new temporarily buffer
b := make([]byte, 1440)
n, _ := conn.Read(b)