]> git.kaiwu.me - nginx.git/commitdiff
optimization
authorIgor Sysoev <igor@sysoev.ru>
Mon, 8 Oct 2007 04:59:26 +0000 (04:59 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 8 Oct 2007 04:59:26 +0000 (04:59 +0000)
src/http/ngx_http_upstream.c

index 0956f01581a06dc386fd5a9b41b52a70459efecd..88cae8f03f96ca28d575b6a7cb9d897472dd415f 100644 (file)
@@ -980,8 +980,7 @@ ngx_http_upstream_process_header(ngx_event_t *rev)
 #endif
     }
 
-    n = u->peer.connection->recv(u->peer.connection, u->buffer.last,
-                                 u->buffer.end - u->buffer.last);
+    n = c->recv(c, u->buffer.last, u->buffer.end - u->buffer.last);
 
     if (n == NGX_AGAIN) {
 #if 0