mirror of
https://github.com/xtaci/smux.git
synced 2024-04-21 10:51:48 +00:00
send RST when PSH to absent streams
This commit is contained in:
+2
-1
@@ -222,7 +222,8 @@ func (s *Session) recvLoop() {
|
||||
case s.rdEvents[f.sid] <- struct{}{}:
|
||||
default:
|
||||
}
|
||||
} else {
|
||||
} else { // stream absent
|
||||
s.sendFrame(newFrame(cmdRST, f.sid))
|
||||
s.tbf <- struct{}{}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user