Mercurial > hg > nginx
comparison src/http/modules/ngx_http_event_proxy_handler.c @ 26:53cb81681040
nginx-0.0.1-2002-12-15-09:25:09 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 15 Dec 2002 06:25:09 +0000 |
parents | 77c7629a2627 |
children | 59e7c7f30d49 |
comparison
equal
deleted
inserted
replaced
25:a8b156554dfe | 26:53cb81681040 |
---|---|
307 ngx_log_debug(c->log, "PROXY:\n'%s'" _ p->header_in->pos.mem); | 307 ngx_log_debug(c->log, "PROXY:\n'%s'" _ p->header_in->pos.mem); |
308 /**/ | 308 /**/ |
309 | 309 |
310 if (n == 0) { | 310 if (n == 0) { |
311 ngx_log_debug(c->log, "CLOSE proxy"); | 311 ngx_log_debug(c->log, "CLOSE proxy"); |
312 ngx_del_event(ev, NGX_READ_EVENT); | 312 #if 0 |
313 ngx_del_event(ev, NGX_READ_EVENT, NGX_CLOSE_EVENT); | |
314 #endif | |
313 ngx_event_close_connection(ev); | 315 ngx_event_close_connection(ev); |
314 | 316 |
315 p->hunk_n = 0; | 317 p->hunk_n = 0; |
316 c->write->event_handler = ngx_http_proxy_write_to_client; | 318 c->write->event_handler = ngx_http_proxy_write_to_client; |
317 return ngx_http_proxy_write_to_client(c->write); | 319 return ngx_http_proxy_write_to_client(c->write); |
437 | 439 |
438 } while (n > 0 && left == 0); | 440 } while (n > 0 && left == 0); |
439 | 441 |
440 if (n == 0) { | 442 if (n == 0) { |
441 ngx_log_debug(c->log, "CLOSE proxy"); | 443 ngx_log_debug(c->log, "CLOSE proxy"); |
442 ngx_del_event(ev, NGX_READ_EVENT); | 444 #if 0 |
445 ngx_del_event(ev, NGX_READ_EVENT, NGX_CLOSE_EVENT); | |
446 #endif | |
443 ngx_event_close_connection(ev); | 447 ngx_event_close_connection(ev); |
444 | 448 |
445 p->hunk_n = 0; | 449 p->hunk_n = 0; |
446 c->write->event_handler = ngx_http_proxy_write_to_client; | 450 c->write->event_handler = ngx_http_proxy_write_to_client; |
447 return ngx_http_proxy_write_to_client(c->write); | 451 return ngx_http_proxy_write_to_client(c->write); |