Klaus Demo nginx / 5cc90f3
Fixed segmentation fault with empty config on Windows. See here for report: http://mailman.nginx.org/pipermail/nginx-ru/2011-September/043288.html Maxim Dounin 10 years ago
1 changed file(s) with 6 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
17461746
17471747 #if (NGX_WIN32)
17481748 {
1749 ngx_iocp_conf_t *iocpcf;
1750
1751 iocpcf = ngx_event_get_conf(cf->cycle->conf_ctx, ngx_iocp_module);
1752 if (iocpcf->acceptex_read) {
1749 ngx_iocp_conf_t *iocpcf = NULL;
1750
1751 if (ngx_get_conf(cf->cycle->conf_ctx, ngx_events_module)) {
1752 iocpcf = ngx_event_get_conf(cf->cycle->conf_ctx, ngx_iocp_module);
1753 }
1754 if (iocpcf && iocpcf->acceptex_read) {
17531755 ls->post_accept_buffer_size = cscf->client_header_buffer_size;
17541756 }
17551757 }