agentzh
April 10, 2010 10:46AM
On Fri, Mar 12, 2010 at 11:09 AM, agentzh <agentzh@gmail.com> wrote:
> On Fri, Mar 12, 2010 at 11:05 AM, agentzh <agentzh@gmail.com> wrote:
>> I've reproduced this hang on my side and spent half of my day tracking
>> this issue. But it looked deeper than I had expected.
>>
>
> Forgot to mention that the "post subrequest" handler does not get
> called in this case. It seems ngx_http_upstream does not call
> finalize_request. Most likely an issue in ngx_memc's input filters.

I've fixed this bug in ngx_memc v0.08:

http://wiki.nginx.org/NginxHttpMemcModule#v0.08

ngx_memc didn't support subrequests in memory for memcached commands
other than "get" in earlier versions. Now it's finally fixed by
setting r->upstream->buffer's .pos and .last pointers properly in the
upstream input filters.

Also I've fixed a nasty bug in the discard_bufs function in my fork of
ngx_eval. It used to produce random hanging or segfaults when
eval_subrequest_in_memory was turned off.

Thanks!
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx eval with memc set command very slowly

yaoxinming March 08, 2010 03:34AM

Re: nginx eval with memc set command very slowly

agentzh March 08, 2010 03:46AM

Re: nginx eval with memc set command very slowly

agentzh March 08, 2010 09:58PM

Re: nginx eval with memc set command very slowly

agentzh March 11, 2010 10:12PM

Re: nginx eval with memc set command very slowly

agentzh March 11, 2010 10:14PM

Re: nginx eval with memc set command very slowly

agentzh April 10, 2010 10:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready