mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #320, set socket send buffer to smaller macro. 2.0.131
This commit is contained in:
parent
04dc60ebe1
commit
3e394a5f06
4 changed files with 39 additions and 1 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 130
|
||||
#define VERSION_REVISION 131
|
||||
|
||||
// server info.
|
||||
#define RTMP_SIG_SRS_KEY "SRS"
|
||||
|
|
|
@ -169,6 +169,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
*/
|
||||
//#define SRS_PERF_TCP_NODELAY
|
||||
#undef SRS_PERF_TCP_NODELAY
|
||||
/**
|
||||
* set the socket send buffer,
|
||||
* to force the server to send smaller tcp packet.
|
||||
* @see https://github.com/winlinvip/simple-rtmp-server/issues/320
|
||||
* @remark undef it to auto calc it by merged write sleep ms.
|
||||
* @remark only apply it when SRS_PERF_MW_SO_RCVBUF is defined.
|
||||
*/
|
||||
#ifdef SRS_PERF_MW_SO_SNDBUF
|
||||
//#define SRS_PERF_SO_SNDBUF_SIZE 1024
|
||||
#undef SRS_PERF_SO_SNDBUF_SIZE
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue