diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-04-13 15:08:48 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-04-13 15:08:48 +0000 |
commit | 3d54061602b20fa5a6fdf55b11cb333285d61d03 (patch) | |
tree | dc7cb2320ba0f21cda2cd87096481c0731074296 /src/http/ngx_http_request.c | |
parent | a21e30b91900dbbde5ea7fbc5ed4b2ec59969de7 (diff) | |
download | nginx-3d54061602b20fa5a6fdf55b11cb333285d61d03.tar.gz nginx-3d54061602b20fa5a6fdf55b11cb333285d61d03.zip |
nginx-0.0.3-2004-04-13-19:08:48 import
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 9233f89d8..976475e5e 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -97,8 +97,7 @@ void ngx_http_init_connection(ngx_connection_t *c) return; } - rev->next = (ngx_event_t *) ngx_posted_events; - ngx_posted_events = rev; + ngx_post_event(rev); ngx_mutex_unlock(ngx_posted_events_mutex); return; @@ -1613,11 +1612,11 @@ void ngx_http_close_connection(ngx_connection_t *c) ngx_del_conn(c, NGX_CLOSE_EVENT); } else { - if (c->read->active || c->read->disabled) { + if (c->read->active || c->read->posted || c->read->disabled) { ngx_del_event(c->read, NGX_READ_EVENT, NGX_CLOSE_EVENT); } - if (c->write->active || c->write->disabled) { + if (c->write->active || c->write->posted || c->write->disabled) { ngx_del_event(c->write, NGX_WRITE_EVENT, NGX_CLOSE_EVENT); } } |