From 2ae3bda029ec91e02fb164fd53175ad78d45a0ba Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 22 Sep 2014 18:15:10 +0200 Subject: Increased from 200 nano to milliseconds --- ethwire/messaging.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethwire/messaging.go b/ethwire/messaging.go index b1cefc0ae..2b3836e9c 100644 --- a/ethwire/messaging.go +++ b/ethwire/messaging.go @@ -109,9 +109,10 @@ func ReadMessages(conn net.Conn) (msgs []*Msg, err error) { } } + fmt.Println(n, len(buff)) if n == 0 && len(buff) == 0 { // If there's nothing on the wire wait for a bit - time.Sleep(200) + time.Sleep(200 * time.Millisecond) continue } -- cgit