Commit 2ae3bda0 authored by obscuren's avatar obscuren

Increased from 200 nano to milliseconds

parent 1bc815e0
...@@ -109,9 +109,10 @@ func ReadMessages(conn net.Conn) (msgs []*Msg, err error) { ...@@ -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 n == 0 && len(buff) == 0 {
// If there's nothing on the wire wait for a bit // If there's nothing on the wire wait for a bit
time.Sleep(200) time.Sleep(200 * time.Millisecond)
continue continue
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment