upstream keepalive - call for testing

Maxim Dounin mdounin at mdounin.ru
Fri Aug 26 18:06:32 UTC 2011


Hello!

On Fri, Aug 26, 2011 at 12:17:01PM -0400, magicbear wrote:

> It get the same result, I think may be cause by my upload script? I will
> try to disable it to get result.
> In another more high load server(without patch) using this script is no
> this problem.

You mean you log rotation script you've posted earlier?  It 
shouldn't cause problems, if it does - this means there is a bug 
somewhere.  And I think I've found the one you are seeing, please 
try the following patch:

diff --git a/src/event/ngx_event_pipe.c b/src/event/ngx_event_pipe.c
--- a/src/event/ngx_event_pipe.c
+++ b/src/event/ngx_event_pipe.c
@@ -414,6 +414,7 @@ ngx_event_pipe_read_upstream(ngx_event_p

     if (p->length == 0) {
         p->upstream_done = 1;
+        p->read = 1;
     }

     if ((p->upstream_eof || p->upstream_error) && p->free_raw_bufs) {

You may also grab one from here:

http://mdounin.ru/files/patch-nginx-keepalive-cache.txt

Maxim Dounin



More information about the nginx mailing list