mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
p2p: don't mess with the socket deadline in Peer.readLoop
netWrapper already sets a read deadline in ReadMsg.
This commit is contained in:
parent
145330fdf2
commit
99a1db2d40
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Reference in a new issue