Restrictions on uploading files via POST in LS

Discussion in 'Install/Configuration' started by subBlue, Jan 19, 2007.

  1. subBlue

    subBlue Active Member

    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?
  2. xing

    xing LiteSpeed Staff

    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.
  3. mistwang

    mistwang LiteSpeed Staff

    It probably is because the "max request body size" has been reached, you may need to increase it under "server"->"Tuning" tab.

Share This Page