mirror of
https://github.com/xtaci/smux.git
synced 2024-04-21 10:51:48 +00:00
force a signal to the recvloop
This commit is contained in:
@@ -238,6 +238,7 @@ func (s *Session) keepalive() {
|
||||
select {
|
||||
case <-tickerPing.C:
|
||||
s.writeFrame(newFrame(cmdNOP, 0))
|
||||
s.bucketCond.Signal() // force a signal to the recvLoop
|
||||
case <-tickerTimeout.C:
|
||||
if !atomic.CompareAndSwapInt32(&s.dataReady, 1, 0) {
|
||||
s.Close()
|
||||
|
||||
Reference in New Issue
Block a user