mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #320, support macro to disable the complex send algorithm and enable tcp no delay. 2.0.129
This commit is contained in:
parent
f619f174e6
commit
34d6a2ece5
7 changed files with 120 additions and 20 deletions
|
@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
// current release version
|
||||
#define VERSION_MAJOR 2
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 128
|
||||
#define VERSION_REVISION 129
|
||||
|
||||
// server info.
|
||||
#define RTMP_SIG_SRS_KEY "SRS"
|
||||
|
|
|
@ -108,7 +108,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
* whether set the socket send buffer size.
|
||||
* @see https://github.com/winlinvip/simple-rtmp-server/issues/251
|
||||
*/
|
||||
#undef SRS_PERF_MW_SO_SNDBUF
|
||||
#define SRS_PERF_MW_SO_SNDBUF
|
||||
|
||||
/**
|
||||
* whether set the socket recv buffer size.
|
||||
* @see https://github.com/winlinvip/simple-rtmp-server/issues/251
|
||||
|
@ -154,5 +155,20 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
// in seconds, the live queue length.
|
||||
#define SRS_PERF_PLAY_QUEUE 30
|
||||
|
||||
/**
|
||||
* whether always use complex send algorithm.
|
||||
* for some network does not support the complex send,
|
||||
* @see https://github.com/winlinvip/simple-rtmp-server/issues/320
|
||||
*/
|
||||
//#undef SRS_PERF_COMPLEX_SEND
|
||||
#define SRS_PERF_COMPLEX_SEND
|
||||
/**
|
||||
* whether enable the TCP_NODELAY
|
||||
* user maybe need send small tcp packet for some network.
|
||||
* @see https://github.com/winlinvip/simple-rtmp-server/issues/320
|
||||
*/
|
||||
//#define SRS_PERF_TCP_NODELAY
|
||||
#undef SRS_PERF_TCP_NODELAY
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue