Welcome! Log In Create A New Profile

Advanced

[PATCH] allow keep-alive to safari when it's ok

Naoki Hiroshima
February 10, 2011 10:08PM
Hi,

The workaround for safari/keep-alive issue being introduced by 0.8.33
seems to be way too aggressive. Since it's a POST issue, we should
unwillingly disable keep-alive only when it's POST.

-- @N

$ diff -u src/http/ngx_http_core_module.c~ src/http/ngx_http_core_module.c
--- src/http/ngx_http_core_module.c~ 2010-12-14 10:38:42.000000000 +0000
+++ src/http/ngx_http_core_module.c 2011-02-11 02:55:05.000000000 +0000
@@ -802,11 +802,13 @@
}

} else if (r->headers_in.safari) {
- /*
- * Safari may send a POST request to a closed keepalive
- * connection and stalls for some time
- */
- r->keepalive = 0;
+ if (r->method == NGX_HTTP_POST) {
+ /*
+ * Safari may send a POST request to a closed keepalive
+ * connection and stalls for some time
+ */
+ r->keepalive = 0;
+ }
}
}

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

[PATCH] allow keep-alive to safari when it's ok

Naoki Hiroshima 2859 February 10, 2011 10:08PM

Re: [PATCH] allow keep-alive to safari when it's ok

Igor Sysoev 944 February 11, 2011 02:48AM

Re: [PATCH] allow keep-alive to safari when it's ok

Naoki Hiroshima 802 February 11, 2011 06:58PM

Re: [PATCH] allow keep-alive to safari when it's ok

agentzh 730 February 11, 2011 10:18PM

Re: [PATCH] allow keep-alive to safari when it's ok

Igor Sysoev 876 February 12, 2011 01:44AM

Re: [PATCH] allow keep-alive to safari when it's ok

Peter Leonov 1033 February 13, 2011 12:56PM

Re: [PATCH] allow keep-alive to safari when it's ok

Igor Sysoev 901 February 12, 2011 01:42AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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