comparison src/http/ngx_http_request.c @ 213:f536f91e8e99

nginx-0.0.1-2003-12-19-15:45:27 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 19 Dec 2003 12:45:27 +0000
parents 679f60139863
children e0c502f15852
comparison
equal deleted inserted replaced
212:679f60139863 213:f536f91e8e99
105 if (ngx_handle_write_event(c->write, 0) == NGX_ERROR) { 105 if (ngx_handle_write_event(c->write, 0) == NGX_ERROR) {
106 ngx_http_close_connection(c); 106 ngx_http_close_connection(c);
107 return; 107 return;
108 } 108 }
109 #endif 109 #endif
110
111 ngx_atomic_inc(ngx_http_reading_state);
112 } 110 }
113 111
114 112
115 static void ngx_http_init_request(ngx_event_t *rev) 113 static void ngx_http_init_request(ngx_event_t *rev)
116 { 114 {
127 125
128 c = rev->data; 126 c = rev->data;
129 127
130 if (rev->timedout) { 128 if (rev->timedout) {
131 ngx_log_error(NGX_LOG_INFO, c->log, NGX_ETIMEDOUT, "client timed out"); 129 ngx_log_error(NGX_LOG_INFO, c->log, NGX_ETIMEDOUT, "client timed out");
132 ngx_atomic_dec(ngx_http_reading_state);
133 ngx_http_close_connection(c); 130 ngx_http_close_connection(c);
134 return; 131 return;
135 } 132 }
136 133
137 if (c->data) { 134 if (c->data) {