Sync upstream updates from github.com/winshining/nginx-http-flv-module
This commit is contained in:
1 parent
1be683b499
commit
20bbd5d297
16 files changed
+209
-76
No files matched your search
@@ -12,6 +12,11 @@
|
||||
#include "ngx_rtmp.h"
|
||||
|
||||
|
||||
#if (nginx_version < 1002006)
|
||||
#error The module can not be compiled with too older version than nginx-1.2.6.
|
||||
#endif
|
||||
|
||||
|
||||
static char *ngx_rtmp_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
|
||||
static ngx_int_t ngx_rtmp_optimize_servers(ngx_conf_t *cf,
|
||||
ngx_rtmp_core_main_conf_t *cmcf, ngx_array_t *ports);
|
||||
@@ -823,19 +828,6 @@ ngx_rtmp_add_listening(ngx_conf_t *cf, ngx_rtmp_conf_addr_t *addr)
|
||||
ls->log.data = &ls->addr_text;
|
||||
ls->log.handler = ngx_accept_log_error;
|
||||
|
||||
#if (NGX_WIN32)
|
||||
{
|
||||
ngx_iocp_conf_t *iocpcf = NULL;
|
||||
|
||||
if (ngx_get_conf(cf->cycle->conf_ctx, ngx_events_module)) {
|
||||
iocpcf = ngx_event_get_conf(cf->cycle->conf_ctx, ngx_iocp_module);
|
||||
}
|
||||
if (iocpcf && iocpcf->acceptex_read) {
|
||||
ls->post_accept_buffer_size = 1024;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
ls->backlog = addr->opt.backlog;
|
||||
ls->rcvbuf = addr->opt.rcvbuf;
|
||||
ls->sndbuf = addr->opt.sndbuf;
|
||||
|
||||
Reference in new issue
Block a user