(bug?)Timeout when proxy-pass 0 byte file

Maxim Dounin mdounin at mdounin.ru
Wed Sep 30 12:42:52 MSD 2009


Hello!

On Wed, Sep 30, 2009 at 11:26:59AM +0800, tOmasEn wrote:

> here is my conf
> 
> http{
>    ...
>         proxy_buffer_size 4k;
>         proxy_buffers 1024 4k;
>         proxy_temp_path /data/nginx/proxy_temp ;
>         proxy_cache_path  /data/nginx/proxy_cache  levels=1:2
> keys_zone=cache1:1000m;
>     ...
> server{
>     ...
>    location ~* \.(ico|css|js|gif|jp?g|png|xsl)$ {
>             proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
>                       proxy_set_header Host $http_host;
>                       proxy_redirect off;
>                         proxy_pass http://61.129.66.75:80;
>                         proxy_cache_key shtatic$request_uri;
>                         proxy_cache cache1;
>                         break;
>         }
>    ....
> }
> 
> the initiall request when there isn't and cache, everything is ok. the
> following request to same url will wait until timeout.

Ok, so the problem is cache.  Thanks, I'm able to reproduce it 
here.  I'll take a look later today how to fix it.

Maxim Dounin

[...]

> 
> On Tue, Sep 29, 2009 at 10:48 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> 
> > Hello!
> >
> > On Tue, Sep 29, 2009 at 10:08:51PM +0800, tOmasEn wrote:
> >
> > > I been expirencing very slow page load when use nginx as frontend(with
> > > proxy_pass) for a while.
> > >
> > > After some test and debug, i found that it always timeout on response
> > > of 0 byte file.
> > >
> > > So i think there might be a bug when nginx running on proxy mode and
> > > serving 0 byte files. The frontend will consider there should be more
> > > data and wait until timeout or something like this.
> >
> > Could you please provide nginx -V output and debug log?
> >
> > Maxim Dounin
> >
> > >
> > > Btw. Nginx is great. Thanks
> > >
> > > tomasen
> > >
> > > --
> > > 从我的移动设备发送
> > >
> >
> >





More information about the nginx mailing list