use MAX_PACKETS_IN_FLIGHT as receiver max flow window

This commit is contained in:
Stephen Birarda 2016-09-26 15:55:23 -07:00
parent 5ffbd2d11e
commit 9760fdc906

View file

@ -315,8 +315,8 @@ void Connection::sendACK(bool wasCausedBySyncTimeout) {
// pack the available buffer size, in packets
// in our implementation we have no hard limit on receive buffer size, send the default value
_ackPacket->writePrimitive((int32_t) udt::CONNECTION_RECEIVE_BUFFER_SIZE_PACKETS);
_ackPacket->writePrimitive((int32_t) udt::MAX_PACKETS_IN_FLIGHT);
if (wasCausedBySyncTimeout) {
// grab the up to date packet receive speed and estimated bandwidth
int32_t packetReceiveSpeed = _receiveWindow.getPacketReceiveSpeed();