Increase Connection Timeout for specific script

Discussion in 'General' started by Heritz, Dec 10, 2010.

  1. Heritz

    Heritz Member


    My LS tuning configuration is set to Connection Timeout: 120 secs. However, I need to run a specific PHP script which can take up to 10 minutes to complete, because it does an FTP connection/download to a remote server.

    Is there any way to prevent LS from timing out without increasing the global timeout for all the domains?

    I really don't want to set a global timeout of 600 for all the server.

  2. mistwang

    mistwang LiteSpeed Staff

    It is not possible. same with apache.
  3. outeredge

    outeredge Active Member

    Is there a way around this when writing PHP scripts? i.e. set_time_limit, etc?

    What needs to be sent back to the request to ensure litespeed doesn't timeout the process?
  4. NiteWave

    NiteWave Administrator

  5. bigjl

    bigjl Member

    Where exactly do I set this up?
    My litespeed is 4.1.9.
  6. NiteWave

    NiteWave Administrator

    .htaccess or httpd.conf
  7. webizen

    webizen Well-Known Member

  8. outeredge

    outeredge Active Member

    You probably shouldn't be using Litespeed if you don't know where these files are... :eek:
  9. webizen

    webizen Well-Known Member

    Nah. that's why we have this forum for people to ask questions.

Share This Page