Poor performance in serving of static files
mdounin at mdounin.ru
Mon Jul 18 15:32:44 UTC 2011
On Mon, Jul 18, 2011 at 03:51:55PM +0100, Jürg Lehni wrote:
> That was exactly it!
> I knew it must be something really silly that I'm overseeing.
> Would it be good to mention this on the Wiki? I could imagine
> others having similar issues.
> It might be good also to allow the control of keepalive behavior
> separate for GET and POST requests?
The problem with Safari is that it may use any closed keepalive
connection to send POST and this will result in problems. That
is, the only way to mitigate the problem is to completely disable
keepalive connections with Safari.
Probably acceptable solution would be to change keepalive_disable
default to "msie6" (which would disable keepalives with old MSIE
after POSTs) leaving "safari" as a workaround option for people
who really use POSTs and see problems with Safari.
> Thank you all for your help!
> On 18 Jul 2011, at 15:08, Maxim Dounin wrote:
> > Hello!
> > On Mon, Jul 18, 2011 at 02:48:47PM +0100, Jürg Lehni wrote:
> >> This is very interesting! I just tried out Chrome and Firefox
> >> and I don't see these differences in performance. It's only on
> >> Safari. On Chrome, Nginx seems to have an edge even. How is this
> >> possible?
> > This is probably due to disabled by default keepalive for Safari
> > due to problems with POSTs. Try
> > keepalive_disable msie6;
> > (default is "msie6 safari")
> >  https://bugs.webkit.org/show_bug.cgi?id=5760
> > Maxim Dounin
> > _______________________________________________
> > nginx mailing list
> > nginx at nginx.org
> > http://nginx.org/mailman/listinfo/nginx
> nginx mailing list
> nginx at nginx.org
More information about the nginx