Restrictions on uploading files via POST in LS

subBlue

Active Member
#1
We have a client who is trying to upload a large file through our Rails CMS and they are finding the connection is lost before the upload has completed. I'm wondering what happens when an upload takes longer than the connection timeout setting on the server (currently set at 300 secs). Will it kill the connection, or does it know there is an upload in progress and will keep it open until the POST has finished?
 

xing

LiteSpeed Staff
#2
Yes, litespeed will kill the connection. The timeout value applies to all connections. The reason is that if litespeed ignores the timeout value for uploads, treats it as special, then anyone can exploit this feature and create 10000 upload http connections and starve the server creating a DoS effect.

You would need to make sure the timeout values is long enough for the uploads to complete.
 
Top