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:

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.

5760 – Safari hangs when uploading files to certain php scripts

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

Is there a way to do this with nginx?

The patch.