p2p: don't mess with the socket deadline in Peer.readLoop

netWrapper already sets a read deadline in ReadMsg.
pull/691/head
Felix Lange 10 years ago
parent 145330fdf2
commit 99a1db2d40
  1. 1
      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

Loading…
Cancel
Save