mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-27 16:17:22 +00:00
Increased timeout
This commit is contained in:
parent
68fba4b781
commit
890745e846
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue