Mercurial > hg > nginx
comparison src/http/ngx_http_request.c @ 369:9c2515d70489
nginx-0.0.7-2004-06-25-18:42:03 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 25 Jun 2004 14:42:03 +0000 |
parents | 15c84a40e87d |
children | 54f76b0b8dca |
comparison
equal
deleted
inserted
replaced
368:15c84a40e87d | 369:9c2515d70489 |
---|---|
1011 if (r->connection->read->timer_set) { | 1011 if (r->connection->read->timer_set) { |
1012 ngx_del_timer(r->connection->read); | 1012 ngx_del_timer(r->connection->read); |
1013 } | 1013 } |
1014 | 1014 |
1015 if (r->connection->write->timer_set) { | 1015 if (r->connection->write->timer_set) { |
1016 r->connection->write->delayed = 0; | |
1016 ngx_del_timer(r->connection->write); | 1017 ngx_del_timer(r->connection->write); |
1017 } | 1018 } |
1018 | 1019 |
1019 if (r->connection->read->kq_eof) { | 1020 if (r->connection->read->kq_eof) { |
1020 #if (NGX_KQUEUE) | 1021 #if (NGX_KQUEUE) |
1053 ngx_http_core_loc_conf_t *clcf; | 1054 ngx_http_core_loc_conf_t *clcf; |
1054 | 1055 |
1055 wev = r->connection->write; | 1056 wev = r->connection->write; |
1056 wev->event_handler = ngx_http_writer; | 1057 wev->event_handler = ngx_http_writer; |
1057 | 1058 |
1059 r->http_state = NGX_HTTP_WRITING_REQUEST_STATE; | |
1060 | |
1058 if (wev->ready && wev->delayed) { | 1061 if (wev->ready && wev->delayed) { |
1059 return; | 1062 return; |
1060 } | 1063 } |
1061 | |
1062 r->http_state = NGX_HTTP_WRITING_REQUEST_STATE; | |
1063 | 1064 |
1064 clcf = ngx_http_get_module_loc_conf(r->main ? r->main : r, | 1065 clcf = ngx_http_get_module_loc_conf(r->main ? r->main : r, |
1065 ngx_http_core_module); | 1066 ngx_http_core_module); |
1066 if (!wev->delayed) { | 1067 if (!wev->delayed) { |
1067 ngx_add_timer(wev, clcf->send_timeout); | 1068 ngx_add_timer(wev, clcf->send_timeout); |