diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-12-10 12:09:51 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-12-10 12:09:51 +0000 |
| commit | 86ef6aaa6b574f2015a5094670b7123c425a63af (patch) | |
| tree | e0b78dcc48085162b29fbff2c0aeb7e5bd75c654 /src/http/ngx_http.c | |
| parent | e60049418525a5e605765aa2b8f9c6796eb390a6 (diff) | |
| download | nginx-86ef6aaa6b574f2015a5094670b7123c425a63af.tar.gz nginx-86ef6aaa6b574f2015a5094670b7123c425a63af.tar.bz2 | |
move condition declarations inside blocks where they are used
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/http/ngx_http.c b/src/http/ngx_http.c index 59b43d054..e3583a4f8 100644 --- a/src/http/ngx_http.c +++ b/src/http/ngx_http.c @@ -101,9 +101,6 @@ ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) #if (NGX_PCRE) ngx_uint_t regex; #endif -#if (NGX_WIN32) - ngx_iocp_conf_t *iocpcf; -#endif /* the main http context */ @@ -821,10 +818,14 @@ ngx_http_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ls->log.handler = ngx_accept_log_error; #if (NGX_WIN32) + { + ngx_iocp_conf_t *iocpcf; + iocpcf = ngx_event_get_conf(cf->cycle->conf_ctx, ngx_iocp_module); if (iocpcf->acceptex_read) { ls->post_accept_buffer_size = cscf->client_header_buffer_size; } + } #endif ls->backlog = in_addr[a].listen_conf->backlog; |
