send RST when PSH to absent streams

This commit is contained in:
xtaci
2016-09-01 14:16:46 +08:00
parent dea56448a1
commit ad1eca45ca
+2 -1
View File
@@ -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{}{}
}
}