Disabling HTTP keepalive by User-Agent

A long-standing bug in Safari causes file uploads to hang when keepalive
connections are improperly reused.

https://bugs.webkit.org/show_bug.cgi?id=5760

In Apache, disabling keepalive support for Webkit solves this problem.

Is there a way to do this with nginx?

  • Joshua

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,45489,45489#msg-45489

On Tue, Jan 26, 2010 at 1:50 AM, joshua [email protected] wrote:

In Apache, disabling keepalive support for Webkit solves this problem.

Is there a way to do this with nginx?

How about turning off r->keepalive in an early request processing
phase (like the rewrite phase) for those webkit user agents? I think a
little C module will do that trick :wink:

Cheers,
-agentzh

On Mon, Jan 25, 2010 at 12:50:43PM -0500, joshua wrote:

A long-standing bug in Safari causes file uploads to hang when keepalive connections are improperly reused.

https://bugs.webkit.org/show_bug.cgi?id=5760

In Apache, disabling keepalive support for Webkit solves this problem.

Is there a way to do this with nginx?

The patch.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs