aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-04-10 19:24:10 +0800
committerFelix Lange <fjl@twurst.com>2015-04-10 19:26:28 +0800
commit99a1db2d4076861d19e2bd704732ff91d509f34b (patch)
tree1bb143caea421d86cd939054d5f6ff42915b1bc1
parent145330fdf28b6d6bf3558dec0b512a5379d446f7 (diff)
downloadgo-tangerine-99a1db2d4076861d19e2bd704732ff91d509f34b.tar.gz
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.
-rw-r--r--p2p/peer.go1
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