All files from this thread

File Name File Size   Posted by Date  
nginx-vs 571 bytes open | download Andrea Soracchi 03/02/2012 Read message
phpfpm-vs.conf 650 bytes open | download Andrea Soracchi 03/02/2012 Read message
fastcgi_params_phpfpm 1.3 KB open | download Andrea Soracchi 03/02/2012 Read message
nginx.conf 1.3 KB open | download Andrea Soracchi 03/02/2012 Read message
php-fpm.conf 3.4 KB open | download Andrea Soracchi 03/02/2012 Read message
Max
March 02, 2012 11:30AM
02 марта 2012, 17:52 от Maxim Dounin <mdounin@mdounin.ru>:
> Hello!
>
> On Fri, Mar 02, 2012 at 05:15:54PM +0400, Max wrote:
>
> >
> > 02 марта 2012, 17:09 от Maxim Dounin <mdounin@mdounin.ru>:
> > > Hello!
> > >
> > > On Fri, Mar 02, 2012 at 01:38:45PM +0100, Andrea Soracchi wrote:
> > >
> > > > Hi,
> > > >
> > > > I installed nginx 1.05 and php-fpm 5.3.10 in Ubuntu 11.10.
> > > >
> > > > If I browse with explorer,firefox and chrome all works very well, all is
> > > fast!
> > > >
> > > > If I use my Playbook (with webkit) all is slow! With webinspector I noticed
> > > that the problem is latency. I get a very high latency (from 3 to 15 seconds
> > > random) for all the pages with php code.
> > > >
> > > > With the same playbook, I browse the SAME SITES inside other server
> > > (actually I've just copied it in it ):
> > > >
> > > > - nginx 0.84
> > > > - php 5.3.0
> > > > - ubuntu 9.10
> > > >
> > > > and works very well and fast! It's incredible!
> > > >
> > > > I have attached the main nginx.conf, nginx-vs.conf, main php-fpm.conf,
> > > php-fpm-vs.conf and fastcgi_params_phpfpm.
> > > >
> > > > Any idea?
> > >
> > > Try
> > >
> > > keepalive_disable msie6;
> > >
> > > http://nginx.org/en/docs/http/ngx_http_core_module.html#keepalive_disable
> >
> > This is WebKit related, so this is more likely to help:
> >
> > keepalive_disable safari;
>
> No. The problem is that keepalive is disabled by default for safari,
> and the "keepalive_disable msie6;" will re-enable it.

Just for the record - keepalive_disable is set to msie6 and safari
by default, but using the keepalive_disable directive explicitly
disables keepalive for the specified arguments and implicitly
enables (by not disabling) keepalive for all the other possible
arguments.

So to enable keepalive for a browser that has keepalive disabled
by default (which currently includes msie6 and safari) you have
to use "keepalive_disable ID;", where ID is anything but the ID
of the browser you want to enable keepalive for.

This disables keepalive for msie6 and implicitly enables
keepalive for safari and all the other browsers:

keepalive_disable msie6;

This disables keepalive for safari and implicitly enables
keepalive for msie6 and all the other browsers:

keepalive_disable safari;

This disables keepalive for safari and browser "none",
and implicitly enables keepalive for msie6, but not
due to the "none" argument:

keepalive_disable none safari;

That's because "none" does not actually reset the keepalive_disable
variable to zero, it's implemented as another browser (2nd bit in the
keepalive_disable browser bitmap), so specifying "none" as a single
argument disables keepalive only for browser "none" and implicitly
enables it for all the other browsers.

I know this directive is a workaround in the first place, but it would
be nice if this were documented in the official documentation.

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

Latency problem with one browser Attachments

Andrea Soracchi March 02, 2012 07:40AM

Re: Latency problem with one browser

Maxim Dounin March 02, 2012 08:10AM

Re[2]: Latency problem with one browser

Max March 02, 2012 08:18AM

Re: Latency problem with one browser

Maxim Dounin March 02, 2012 08:52AM

Re[2]: Latency problem with one browser

Max March 02, 2012 11:30AM

Re: Latency problem with one browser

Piotr Sikora March 02, 2012 11:36AM

Re: Latency problem with one browser

Andrea Soracchi March 02, 2012 10:54AM

Re[2]: Latency problem with one browser

Max March 02, 2012 11:50AM

Re: Latency problem with one browser

Maxim Dounin March 04, 2012 08:00AM

Re: Latency problem with one browser

Piotr Sikora March 04, 2012 08:42AM

Re: Latency problem with one browser

Maxim Dounin March 04, 2012 12:42PM

Re: Latency problem with one browser

Piotr Sikora March 04, 2012 03:36PM

Re: Latency problem with one browser

Piotr Sikora March 04, 2012 04:10PM

Re: Latency problem with one browser

Maxim Dounin March 15, 2012 02:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 149
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