add a comment

This commit is contained in:
xtaci
2025-12-14 12:59:31 +08:00
parent 35dc1542bc
commit 3b644df082
+3
View File
@@ -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
}
}