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
|
@ -148,6 +148,24 @@ void show_macro_features()
|
|||
srs_trace("MW(merged-write) default sleep %d", SRS_PERF_MW_SLEEP);
|
||||
srs_trace("read chunk stream cache cid [0, %d)", SRS_PERF_CHUNK_STREAM_CACHE);
|
||||
srs_trace("default gop cache %d, play queue %ds", SRS_PERF_GOP_CACHE, SRS_PERF_PLAY_QUEUE);
|
||||
|
||||
#ifndef SRS_PERF_COMPLEX_SEND
|
||||
srs_warn("complex send algorithm disabled.");
|
||||
#else
|
||||
srs_trace("complex send algorithm enabled.");
|
||||
#endif
|
||||
|
||||
#ifdef SRS_PERF_TCP_NODELAY
|
||||
srs_warn("TCP_NODELAY enabled, hurts performance.");
|
||||
#else
|
||||
srs_trace("TCP_NODELAY disabled.");
|
||||
#endif
|
||||
|
||||
#ifdef SRS_PERF_SO_SNDBUF_SIZE
|
||||
srs_warn("socket send buffer size %d", SRS_PERF_SO_SNDBUF_SIZE);
|
||||
#else
|
||||
srs_trace("auto guess socket send buffer by merged write");
|
||||
#endif
|
||||
|
||||
int possible_mr_latency = 0;
|
||||
#ifdef SRS_PERF_MERGED_READ
|
||||
|
@ -170,6 +188,10 @@ void check_macro_features()
|
|||
#warning "using develop SRS, please use release instead."
|
||||
srs_warn("SRS %s is develop branch, please use %s instead", RTMP_SIG_SRS_VERSION, RTMP_SIG_SRS_RELEASE);
|
||||
#endif
|
||||
|
||||
#if defined(SRS_PERF_SO_SNDBUF_SIZE) && !defined(SRS_PERF_MW_SO_SNDBUF)
|
||||
#error "SRS_PERF_SO_SNDBUF_SIZE depends on SRS_PERF_MW_SO_SNDBUF"
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue