Mercurial > hg > nginx
comparison src/http/modules/proxy/ngx_http_proxy_handler.c @ 437:470270fa84d2
nginx-0.0.12-2004-09-23-20:39:34 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 23 Sep 2004 16:39:34 +0000 |
parents | 47709bff4468 |
children | da8c5707af39 |
comparison
equal
deleted
inserted
replaced
436:9549fc9508e5 | 437:470270fa84d2 |
---|---|
399 ev->error = 1; | 399 ev->error = 1; |
400 } | 400 } |
401 | 401 |
402 if (!p->cachable && p->upstream->peer.connection) { | 402 if (!p->cachable && p->upstream->peer.connection) { |
403 ngx_log_error(NGX_LOG_INFO, ev->log, ev->kq_errno, | 403 ngx_log_error(NGX_LOG_INFO, ev->log, ev->kq_errno, |
404 "kevent() reported that client have closed " | 404 "kevent() reported that client closed " |
405 "prematurely connection, " | 405 "prematurely connection, " |
406 "so upstream connection is closed too"); | 406 "so upstream connection is closed too"); |
407 ngx_http_proxy_finalize_request(p, NGX_HTTP_CLIENT_CLOSED_REQUEST); | 407 ngx_http_proxy_finalize_request(p, NGX_HTTP_CLIENT_CLOSED_REQUEST); |
408 return; | 408 return; |
409 } | 409 } |
410 | 410 |
411 ngx_log_error(NGX_LOG_INFO, ev->log, ev->kq_errno, | 411 ngx_log_error(NGX_LOG_INFO, ev->log, ev->kq_errno, |
412 "kevent() reported that client have closed " | 412 "kevent() reported that client closed " |
413 "prematurely connection"); | 413 "prematurely connection"); |
414 | 414 |
415 if (p->upstream == NULL || p->upstream->peer.connection == NULL) { | 415 if (p->upstream == NULL || p->upstream->peer.connection == NULL) { |
416 ngx_http_proxy_finalize_request(p, NGX_HTTP_CLIENT_CLOSED_REQUEST); | 416 ngx_http_proxy_finalize_request(p, NGX_HTTP_CLIENT_CLOSED_REQUEST); |
417 } | 417 } |
462 err = 0; | 462 err = 0; |
463 } | 463 } |
464 | 464 |
465 if (!p->cachable && p->upstream->peer.connection) { | 465 if (!p->cachable && p->upstream->peer.connection) { |
466 ngx_log_error(NGX_LOG_INFO, ev->log, err, | 466 ngx_log_error(NGX_LOG_INFO, ev->log, err, |
467 "client have closed prematurely connection, " | 467 "client closed prematurely connection, " |
468 "so upstream connection is closed too"); | 468 "so upstream connection is closed too"); |
469 ngx_http_proxy_finalize_request(p, NGX_HTTP_CLIENT_CLOSED_REQUEST); | 469 ngx_http_proxy_finalize_request(p, NGX_HTTP_CLIENT_CLOSED_REQUEST); |
470 return; | 470 return; |
471 } | 471 } |
472 | 472 |
473 ngx_log_error(NGX_LOG_INFO, ev->log, err, | 473 ngx_log_error(NGX_LOG_INFO, ev->log, err, |
474 "client have closed prematurely connection"); | 474 "client closed prematurely connection"); |
475 | 475 |
476 if (p->upstream == NULL || p->upstream->peer.connection == NULL) { | 476 if (p->upstream == NULL || p->upstream->peer.connection == NULL) { |
477 ngx_http_proxy_finalize_request(p, NGX_HTTP_CLIENT_CLOSED_REQUEST); | 477 ngx_http_proxy_finalize_request(p, NGX_HTTP_CLIENT_CLOSED_REQUEST); |
478 } | 478 } |
479 } | 479 } |