mirror of
https://github.com/xtaci/smux.git
synced 2026-10-21 06:56:58 +00:00
add a comment
This commit is contained in:
@@ -386,6 +386,9 @@ func (s *Session) recvLoop() {
|
||||
select {
|
||||
case <-s.bucketNotify:
|
||||
case <-s.die:
|
||||
// If it returns here, Accept() and OpenStream() are unblocked with io.ErrClosedPipe,
|
||||
// causing recvLoop to exit gracefully. If recvLoop is blocked in io.ReadFull, however,
|
||||
// it will be unblocked by a socket read error instead.
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user