ngx_log_debug2(NGX_LOG_DEBUG_EVENT, ev->log,0,"accept on %V, ready: %d", &ls->addr_text, ev->available);do{/*如果是一次读取一个accept事件的话,循环体只执行一次, 如果是一次性可以读取所有的accept事件,则这个循环体执行次数为accept事件数*/socklen=NGX_SOCKADDRLEN;#if(NGX_HAVE_ACCEPT4)/...
SV *sv, **asv;ngx_int_trc;ngx_str_t*handler, **args;ngx_uint_ti;ngx_http_perl_ctx_t*ctx;ngx_http_perl_main_conf_t*pmcf;ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log,0,"perl ssi handler"); ctx = ngx_http_get_module_ctx(r, ngx_http_perl_module);if(ctx ==NULL)...
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "http header: \"%V: %V\"", &h->key, &h->value); continue; } // 返回NGX_HTTP_PARSE_HEADER_DONE,表示解析出了整个请求头 if (rc == NGX_HTTP_PARSE_HEADER_DONE) { /* a whole header has been parsed successfully */ ...
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "http header: \"%V: %V\"", &h->key, &h->value); continue; } // 返回NGX_HTTP_PARSE_HEADER_DONE,表示解析出了整个请求头 if (rc == NGX_HTTP_PARSE_HEADER_DONE) { /* a whole header has been parsed successfully */ ...
ngx_log_debugall(r->connection->log,0,"ngx http send header");if(r->header_sent) { ngx_log_error(NGX_LOG_ALERT, r->connection->log,0,"header already sent");returnNGX_ERROR; }if(r->err_status) { r->headers_out.status = r->err_status; ...
}if((ctx = ngx_pcalloc(r->pool,sizeof(*ctx))) ==NULL) {ngx_log_error(NGX_LOG_ERR, r->connection->log,0,"failed to allocate memory from r->pool %s:%d", __FUNCTION__, __LINE__);returnNGX_ERROR; } ctx->params.keys.pool = r->pool; ...
debug_connection = (log->log_level & NGX_LOG_DEBUG_CONNECTION) != 0;while (log) {if (log->log_level < level && !debug_connection) { break; }if (log->writer) { log->writer(log, level, errstr, p - errstr); goto next;
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0, "rtmp uri: \"%V\"", &s->uri);ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0, "rtmp args: \"%V\"", &s->args);return NGX_OK; }ngx_int_t ngx_rtmp_parse_complex_uri(ngx_rtmp_session_t *s, ngx_...
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0, "mp4: ignoring track %ui", ctx->ntracks); } ctx->track = NULL; return NGX_OK; } static ngx_int_t ngx_rtmp_mp4_parse_mdhd(ngx_rtmp_session_t *s, u_char *pos, u_char *last) { ngx_rtmp_mp4_ctx_t...
ngx_log_debug1(NGX_LOG_DEBUG_RTMP, s->connection->log, 0, "gop free cache: gop_cache_count=%uD", ctx->gop_cache_count); return cache->next; } static void ngx_rtmp_gop_cache_cleanup(ngx_rtmp_session_t *s) { ngx_rtmp_gop_cache_ctx_t *ctx; ...