diff options
author | Felix Lange <fjl@twurst.com> | 2015-04-10 19:24:10 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-04-10 19:26:28 +0800 |
commit | 99a1db2d4076861d19e2bd704732ff91d509f34b (patch) | |
tree | 1bb143caea421d86cd939054d5f6ff42915b1bc1 /p2p | |
parent | 145330fdf28b6d6bf3558dec0b512a5379d446f7 (diff) | |
download | go-tangerine-99a1db2d4076861d19e2bd704732ff91d509f34b.tar go-tangerine-99a1db2d4076861d19e2bd704732ff91d509f34b.tar.gz go-tangerine-99a1db2d4076861d19e2bd704732ff91d509f34b.tar.bz2 go-tangerine-99a1db2d4076861d19e2bd704732ff91d509f34b.tar.lz go-tangerine-99a1db2d4076861d19e2bd704732ff91d509f34b.tar.xz go-tangerine-99a1db2d4076861d19e2bd704732ff91d509f34b.tar.zst go-tangerine-99a1db2d4076861d19e2bd704732ff91d509f34b.zip |
p2p: don't mess with the socket deadline in Peer.readLoop
netWrapper already sets a read deadline in ReadMsg.
Diffstat (limited to 'p2p')
-rw-r--r-- | p2p/peer.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/p2p/peer.go b/p2p/peer.go index a82ee4bca..7bc4f9cf6 100644 --- a/p2p/peer.go +++ b/p2p/peer.go @@ -186,7 +186,6 @@ func (p *Peer) pingLoop() { func (p *Peer) readLoop(errc chan<- error) { defer p.wg.Done() for { - p.conn.SetDeadline(time.Now().Add(frameReadTimeout)) msg, err := p.rw.ReadMsg() if err != nil { errc <- err |