Skip to content

Commit

Permalink
[core] MAXBW infinite value updated to 1 Gbps.
Browse files Browse the repository at this point in the history
Previous value was 30 Mbps.
  • Loading branch information
maxsharabayko authored and rndi committed Jul 22, 2019
1 parent c852e18 commit a10b721
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion srtcore/common.h
Expand Up @@ -164,7 +164,7 @@ enum EConnectStatus
std::string ConnectStatusStr(EConnectStatus est);


const int64_t BW_INFINITE = 30000000/8; //Infinite=> 30Mbps
const int64_t BW_INFINITE = 1000000000/8; //Infinite=> 1 Gbps


enum ETransmissionEvent
Expand Down
2 changes: 1 addition & 1 deletion srtcore/congctl.cpp
Expand Up @@ -72,7 +72,7 @@ class LiveCC: public SrtCongestionControlBase
LiveCC(CUDT* parent)
: SrtCongestionControlBase(parent)
{
m_llSndMaxBW = BW_INFINITE; // 30Mbps in Bytes/sec BW_INFINITE
m_llSndMaxBW = BW_INFINITE; // 1 Gbbps in Bytes/sec BW_INFINITE
m_zMaxPayloadSize = parent->OPT_PayloadSize();
if ( m_zMaxPayloadSize == 0 )
m_zMaxPayloadSize = parent->maxPayloadSize();
Expand Down
2 changes: 1 addition & 1 deletion srtcore/core.cpp
Expand Up @@ -6288,7 +6288,7 @@ void CUDT::updateCC(ETransmissionEvent evt, EventVariant arg)
/*
* On blocked transmitter (tx full) and until connection closes,
* auto input rate falls to 0 but there may be still lot of packet to retransmit
* Calling updateBandwidth with 0 sets maxBW to default BW_INFINITE (30Mbps)
* Calling updateBandwidth with 0 sets maxBW to default BW_INFINITE (1 Gbps)
* and sendrate skyrockets for retransmission.
* Keep previously set maximum in that case (inputbw == 0).
*/
Expand Down

0 comments on commit a10b721

Please sign in to comment.