02-11-2011, 12:24 AM
Join Date: May 2007
|I think I found the problem, maybe, mobile Safari is being picky.
LiteSpeed sends a Connection: Keep-Alive when the source is php output and does not allow php to override?
However the last thing I send on the page is a tracking gif, which I send as embedded packed hex, with header('Content-Type: image/gif') Content-Length: 43 and most importantly header('Connection: close')
The Connection: close is being removed/overwritten by litespeed with keep-alive, so safari keeps waiting for up to 5 seconds before it times out (or litespeed does).
How can I force litespeed to close the connection from php when I want it to?
(note that other browsers do not seem to have this problem so I am not blaming litespeed)
HTTP/1.1 200 OK
Date: Fri, 11 Feb 2011 07:26:57 GMT
Keep-Alive: timeout=5, max=100
Last edited by aww; 02-11-2011 at 12:30 AM..