Skip to content

Commit fd7e24f

Browse files
committed
Congestion window implementation beta.
1 parent a576c4a commit fd7e24f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

c_cpp/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const uint16_t MAXIMUM_BUFFER_SIZE = 1500; /* 1500 Bytes */
112112
const uint16_t PING_INTERVAL = 100; /* 100 ms */
113113
const double CONNECTION_TIMEOUT = 10.0; /* 10 s */
114114
const uint16_t MINIMUM_RETRANSMISSION_INTERVAL = 10; /* 10 ms */
115-
const uint32_t MAXIMUM_CONGESTION_WINDOW_SIZE = 1*1000*1000; /* 10MB */
115+
const uint32_t MAXIMUM_CONGESTION_WINDOW_SIZE = 2*1000*1000; /* 10MB */
116116
const uint32_t MINIMUM_CONGESTION_WINDOW_SIZE = 1000*64; /* 10KB */
117117
enum TRANSMISSION_MODE : uint8_t
118118
{

c_cpp/tx.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,7 @@ void TransmissionSession::ProcessSyncAck(const uint16_t sequence)
409409
m_Timer.PeriodicTask(
410410
0,
411411
[this]() -> const bool {
412-
while (PopDataPacket())
413-
;
412+
PopDataPacket();
414413
return m_IsConnected;
415414
},
416415
TransmissionSession::LOW_PRIORITY);

0 commit comments

Comments
 (0)