aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/proxy/ngx_http_proxy_handler.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-03-30 06:27:36 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-03-30 06:27:36 +0000
commit6881bfb99063e3d42abaa313641b311c6fc3522d (patch)
tree1df669d89a2f58b450947901b1f41eb407dbf540 /src/http/modules/proxy/ngx_http_proxy_handler.c
parent11dbe97ca401221313dc233aa2d6f67dfcaef1a7 (diff)
downloadnginx-6881bfb99063e3d42abaa313641b311c6fc3522d.tar.gz
nginx-6881bfb99063e3d42abaa313641b311c6fc3522d.zip
nginx-0.0.3-2004-03-30-10:27:36 import
Diffstat (limited to 'src/http/modules/proxy/ngx_http_proxy_handler.c')
-rw-r--r--src/http/modules/proxy/ngx_http_proxy_handler.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/http/modules/proxy/ngx_http_proxy_handler.c b/src/http/modules/proxy/ngx_http_proxy_handler.c
index 3fc8d0ef4..8f0336a9b 100644
--- a/src/http/modules/proxy/ngx_http_proxy_handler.c
+++ b/src/http/modules/proxy/ngx_http_proxy_handler.c
@@ -374,28 +374,29 @@ static int ngx_http_proxy_handler(ngx_http_request_t *r)
}
-void ngx_http_proxy_check_broken_connection(ngx_event_t *wev)
+void ngx_http_proxy_check_broken_connection(ngx_event_t *ev)
{
ngx_connection_t *c;
ngx_http_request_t *r;
ngx_http_proxy_ctx_t *p;
- ngx_log_debug0(NGX_LOG_DEBUG_HTTP, wev->log, 0, "http proxy check client");
+ ngx_log_debug1(NGX_LOG_DEBUG_HTTP, ev->log, 0,
+ "http proxy check client, write event:%d", ev->write);
- c = wev->data;
+ c = ev->data;
r = c->data;
p = ngx_http_get_module_ctx(r, ngx_http_proxy_module);
#if (HAVE_KQUEUE)
- if (wev->kq_eof) {
- wev->eof = 1;
+ if (ev->kq_eof) {
+ ev->eof = 1;
- if (wev->kq_errno) {
- wev->error = 1;
+ if (ev->kq_errno) {
+ ev->error = 1;
}
if (!p->cachable && p->upstream->peer.connection) {
- ngx_log_error(NGX_LOG_INFO, wev->log, wev->kq_errno,
+ ngx_log_error(NGX_LOG_INFO, ev->log, ev->kq_errno,
"kevent() reported that client have closed "
"prematurely connection, "
"so upstream connection is closed too");
@@ -403,7 +404,7 @@ void ngx_http_proxy_check_broken_connection(ngx_event_t *wev)
return;
}
- ngx_log_error(NGX_LOG_INFO, wev->log, wev->kq_errno,
+ ngx_log_error(NGX_LOG_INFO, ev->log, ev->kq_errno,
"kevent() reported that client have closed "
"prematurely connection");