mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #320, refine code.
This commit is contained in:
parent
34d6a2ece5
commit
a47dbf7a92
2 changed files with 4 additions and 2 deletions
|
@ -1129,10 +1129,10 @@ void SrsRtmpConn::change_mw_sleep(int sleep_ms)
|
||||||
|
|
||||||
void SrsRtmpConn::play_set_sock_options()
|
void SrsRtmpConn::play_set_sock_options()
|
||||||
{
|
{
|
||||||
int fd = st_netfd_fileno(stfd);
|
|
||||||
|
|
||||||
#ifdef SRS_PERF_TCP_NODELAY
|
#ifdef SRS_PERF_TCP_NODELAY
|
||||||
if (true) {
|
if (true) {
|
||||||
|
int fd = st_netfd_fileno(stfd);
|
||||||
|
|
||||||
socklen_t nb_v = sizeof(int);
|
socklen_t nb_v = sizeof(int);
|
||||||
|
|
||||||
int ov = 0;
|
int ov = 0;
|
||||||
|
|
|
@ -88,6 +88,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// generated by configure.
|
// generated by configure.
|
||||||
#include <srs_auto_headers.hpp>
|
#include <srs_auto_headers.hpp>
|
||||||
|
// important performance options.
|
||||||
|
#include <srs_core_performance.hpp>
|
||||||
|
|
||||||
// free the p and set to NULL.
|
// free the p and set to NULL.
|
||||||
// p must be a T*.
|
// p must be a T*.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue