mirror of
https://github.com/PeernetOfficial/core.git
synced 2026-07-16 18:37:51 +01:00
UDT: Fix critical bug in reevalSendState
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user