Skip to content

Commit

Permalink
Modified default SRT socket parameters to use 16K receive buffers and…
Browse files Browse the repository at this point in the history
… max payload size to be 1456 definitions
  • Loading branch information
rickydtran committed Apr 12, 2023
1 parent b010763 commit d3062ec
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions srt.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"files.associations": {
"*.c": "c",
"*.cpp": "cpp",
"functional": "cpp",
"atomic": "cpp",
"*.tcc": "cpp",
"fstream": "cpp",
"sstream": "cpp",
"regex": "cpp"
}
}
}
4 changes: 2 additions & 2 deletions srtcore/socketconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ struct CSrtConfig: CSrtMuxerConfig
static const int
DEF_MSS = 1500,
DEF_FLIGHT_SIZE = 25600,
DEF_BUFFER_SIZE = 8192, //Rcv buffer MUST NOT be bigger than Flight Flag size
DEF_BUFFER_SIZE = 16384, //Rcv buffer MUST NOT be bigger than Flight Flag size
DEF_LINGER_S = 3*60, // 3 minutes
DEF_CONNTIMEO_S = 3; // 3 seconds

Expand Down Expand Up @@ -267,7 +267,7 @@ struct CSrtConfig: CSrtMuxerConfig

CSrtConfig()
: iMSS(DEF_MSS)
, zExpPayloadSize(SRT_LIVE_DEF_PLSIZE)
, zExpPayloadSize(SRT_LIVE_MAX_PLSIZE)
, bSynSending(true)
, bSynRecving(true)
, iFlightFlagSize(DEF_FLIGHT_SIZE)
Expand Down

0 comments on commit d3062ec

Please sign in to comment.