Skip to content

Commit

Permalink
See where the pipe is closing
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Sharp authored and Alexey Sharp committed Mar 21, 2021
1 parent c9db908 commit 3cf22af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions p2p/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"io"
"io/ioutil"
"log"
"runtime/debug"
"sync/atomic"
"time"

Expand Down Expand Up @@ -217,6 +218,7 @@ func (p *MsgPipeRW) Close() error {
atomic.StoreInt32(p.closed, 1) // avoid overflow
return nil
}
fmt.Printf("Closing pipe from %s\n", debug.Stack())
close(p.closing)
return nil
}
Expand Down

0 comments on commit 3cf22af

Please sign in to comment.