Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

[nginx] svn commit: r5170 - trunk/src/http

$
0
0
Author: pluknet
Date: 2013-04-11 13:49:13 +0000 (Thu, 11 Apr 2013)
New Revision: 5170
URL: http://trac.nginx.org/nginx/changeset/5170/nginx

Log:
Upstream: fixed $upstream_response_length without buffering.

Reported by Piotr Sikora.


Modified:
trunk/src/http/ngx_http_upstream.c

Modified: trunk/src/http/ngx_http_upstream.c
===================================================================
--- trunk/src/http/ngx_http_upstream.c 2013-04-10 17:07:44 UTC (rev 5169)
+++ trunk/src/http/ngx_http_upstream.c 2013-04-11 13:49:13 UTC (rev 5170)
@@ -3307,7 +3307,7 @@
u->state->response_sec = tp->sec - u->state->response_sec;
u->state->response_msec = tp->msec - u->state->response_msec;

- if (u->pipe) {
+ if (u->pipe && u->pipe->read_length) {
u->state->response_length = u->pipe->read_length;
}
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>