Commit 890745e8 authored by obscuren's avatar obscuren

Increased timeout

parent 68fba4b7
......@@ -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(200 * time.Millisecond))
// Create a new temporarily buffer
b := make([]byte, 1440)
// Wait for a message from this peer
......
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