good morning!!!!

Skip to content
Snippets Groups Projects
Commit 99a1db2d authored by Felix Lange's avatar Felix Lange
Browse files

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

netWrapper already sets a read deadline in ReadMsg.
parent 145330fd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment