Welcome! Log In Create A New Profile

Advanced

Re: Latency problem with one browser

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
Maxim Dounin
March 04, 2012 08:00AM
Hello!

On Fri, Mar 02, 2012 at 08:48:43PM +0400, Max wrote:

>
> 02 марта 2012, 19:53 от Andrea Soracchi <soracchi@netbuilder.it>:
> > Yes,
> >
> > with "keepalive_disable none;" works fine!
>
> Maxim, do you think the Playbook browser should be added as a
> separate browser (unsigned playbook:1 entry in ngx_http_headers_in_t)
> to prevent it from getting the Safari keepalive disabled treatment?
>
> Here's a typical Playbook browser User-Agent string, adding an if
> block for "Playbook" before the "Safari" if block in
> ngx_http_process_user_agent() should do the trick:
>
> Mozilla/5.0 (PlayBook; U; RIM Tablet OS 1.0.0; en-US) \
> AppleWebKit/534.8+ (KHTML like Gecko) version/0.0.1 Safari/534.8+

Detecting all browsers (thousands of them) which pretend to be
Safari is not an option. And, after all, browsers use other's
product token for reason, and workarounds for bugs is what they
expect to get as a result.

I'm planning to disable this Safari workaround by default instead,
the following patch is already sitting in my queue:

# HG changeset patch
# User Maxim Dounin <mdounin@mdounin.ru>
# Date 1330697796 -14400
# Node ID 88e257b4bd3d61e30d1421ab6f2e417a8baedb96
# Parent 277a1822fc5cf7ad83297c74839ca8c84a49680c
Removed safari from keepalive_disable default.

The bug in question is likely already fixed (though unfortunately we have
no information available as Apple's bugtracker isn't open), and the
workaround seems to be too pessimistic for modern versions of Safari
as well as other webkit-based browsers pretending to be Safari.

diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -3568,8 +3568,7 @@ ngx_http_core_merge_loc_conf(ngx_conf_t
ngx_conf_merge_bitmask_value(conf->keepalive_disable,
prev->keepalive_disable,
(NGX_CONF_BITMASK_SET
- |NGX_HTTP_KEEPALIVE_DISABLE_MSIE6
- |NGX_HTTP_KEEPALIVE_DISABLE_SAFARI));
+ |NGX_HTTP_KEEPALIVE_DISABLE_MSIE6));
ngx_conf_merge_uint_value(conf->satisfy, prev->satisfy,
NGX_HTTP_SATISFY_ALL);
ngx_conf_merge_uint_value(conf->if_modified_since, prev->if_modified_since,

Maxim Dounin

_______________________________________________
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: 282
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