Keepalive Settings and SSL and IE - Puzzling
First things first,
- RHE Linux ES 4
- Lite Speed Std 2.1.14
- PHP LSAPI 4.4.2
When keepalive is set to 0, in both server and vhost onfiguration, it looks like litespeed still uses keep alive. I have tried to set keepalive timout to zero but when the server is started, it automatically changes it to 15 secs.
The whole thing became a problem when we tried to upload some files through ssl using IE. No matter what you set the keepalive settings to, the server closes connection from the client sending the file at the end of keepalive timout seconds.
We have tried to use apache's famous setenvif commant to make sure that keepalive is not used and the protocol is downgraded to HTTP1.0 to make it work :
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
It looks like it does not work. With some of our users, the server keeps timouting the connections after the keepalive timeout is reached.
Is there a workaround for this problem?
PS: The problem is not consiistent, i.e. the same version of ie could work from one network and it could have the problem mentioned above on another network (Everything is the same on the server side)
Thank you for the bug report.
To turn off keepalive, you should set "Max keepalive requests" to 0 or 1, either at server level or at vhost level. changing keepalive timeout will not work.
The setenvif trick in apache does not work with LSWS. And,we don't find any real problem with using SSL keepalive with IE, maybe it is a bug in somewhere else. Please let us know if the problem persist when keepalive has been turned off. If we can reproduce the bug, we will fix it.
New bugfix release will be available soon. stay tuned. :-)
Some more information
Thank you for the reply mistwang.
As you have mentioned in your post, I have tried to turn keepalive to 1 or 0 on both server and virtual host level and conducted some tests with people having the problem before. I have turned on the debug level logging and saw that altough keepalive was turned off, litespeed still closes the connection during ssl file uploads through php at the end of keepalive timeout seconds. It looks like keep alive is still there, or at least that is what seems to be happening in the logs.
What you observed probably does not related to keepalive, just for some reason the upload stalled and the connection timed out. It is "connection timeout", not the "keepalive timeout".
You can send chunk of your error log to bug [at] litespeed . com .
Anyway, we have to be able to reliably reproduce the bug in order to fix it. :)
Error log output
Please find an excerpt from the log file below, I have sent the whole log to the bug email address that you mentioned.
Please note that altough keepalive is set to 0, it timeouts at the end of keepalive timeout secs.
Please download 2.1.15 again, the bug should be fixed.
|All times are GMT -7. The time now is 12:06 PM.|