upstream keepalive - call for testing

magicbear nginx-forum at nginx.us
Fri Aug 26 19:00:52 UTC 2011


I have patch and it won't dead again, Now run 50 minutes, and handled
330000 request without problem.

the problem is not related to proxy_ssl_session_reuse

Maxim Dounin Wrote:
-------------------------------------------------------
> 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-cach
> e.txt
> 
> Maxim Dounin
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,213207,214359#msg-214359



More information about the nginx mailing list