UDT: Fix critical bug in reevalSendState

This commit is contained in:
Kleissner
2021-10-25 03:42:04 +02:00
parent b5266b1c52
commit b0d71c2dc7

View File

@@ -178,7 +178,7 @@ func (s *udtSocketSend) reevalSendState() sendState {
if cwnd > congestWindow {
cwnd = congestWindow
}
if cwnd >= uint(len(s.sendPktPend)) {
if uint(len(s.sendPktPend)) >= cwnd {
return sendStateWaiting
}
}