« Previous Next »

Thread: Stopping timeouts on IIS

Last post 06-29-2009 9:35 PM by brashquido. 10 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (11 items)

Sort Posts:

  • 12-28-2007, 6:10 PM

    • Faltzer
    • Not Ranked
    • Joined on 01-19-2007, 1:04 AM
    • Ridgewood, New York
    • Posts 4

    Stopping timeouts on IIS

    I'm running a file hosting web site on PHP, and my users experienced a problem uploading large files. They say that the script times out and returns a PHP error, though I want to make it so it can never time out. Would setting a negative value help? Here is what I currently have in my php.ini:

     

    ;;;;;;;;;;;;;;;;;;;
    ; Resource Limits ;
    ;;;;;;;;;;;;;;;;;;;

    max_execution_time = 3600    ; Maximum execution time of each script, in seconds
    max_input_time = 999 ; Maximum amount of time each script may spend parsing request data
    ;max_input_nesting_level = 64 ; Maximum input variable nesting level
    memory_limit = 999999999MB      ; Maximum amount of memory a script may consume (128MB)

     

    My connection timeout set for IIS is: 999,999,999

    I also have HTTP Keep Alives enabled.

     

    Is there a solution to this?

     

     

  • 12-31-2007, 3:53 AM In reply to

    • qword
    • Top 150 Contributor
    • Joined on 07-04-2007, 7:53 AM
    • Posts 44

    Re: Stopping timeouts on IIS

    Any other information available in IIS log or Event log? 

  • 12-31-2007, 4:28 PM In reply to

    Re: Stopping timeouts on IIS

    Faltzer,

    I believe there are two ways to do this. You could either set the max_execution_time in the php.ini to 0, or can use the following to reset and redefine the limit in a script:

    void set_time_limit ( int $seconds )

    ...setting seconds to 0. The set_time_limit ( ) code will reset the running timer back to zero, but you can define a new limit by passing ( int $seconds ) in the declaration. Zero disables the timeout. While I'm not 100% sure, I'm assuming you could probably use a zero for the other timeout values as well toward the same effect.

    I was able to find this information here: http://us3.php.net/manual/en/function.set-time-limit.php
     

    All postings are provided "AS IS" with no warranties, and confer no rights.

    Nathan S., MCP
    Enterhost Support Team
    www.enterhost.com
  • 06-18-2009, 7:51 AM In reply to

    Re: Stopping timeouts on IIS

    i am facing the same issue , do we have any IIS setting to be made for this . i am on dot net 2.0
  • 06-18-2009, 9:08 AM In reply to

    Re: Stopping timeouts on IIS

    Hi,

    Are you actually using PHP or just .Net ?

    Regards,

    Paul Lynch | www.iisadmin.co.uk
  • 06-19-2009, 1:12 AM In reply to

    Re: Stopping timeouts on IIS

    JUST DOTNET
  • 06-19-2009, 1:20 AM In reply to

    Re: Stopping timeouts on IIS

    What is the error in the IIS log file (sc-win32-status)?

    Jaroslav Dunajsky (MSFT, IIS)
  • 06-19-2009, 8:06 AM In reply to

    Re: Stopping timeouts on IIS

    i used fiddler and i got error code 500
  • 06-19-2009, 9:15 AM In reply to

    Re: Stopping timeouts on IIS

    when i am do in this on my intranet , its fine, but once it goes public , the problem starts , i have increased the connection timeout on IIS 6.0 to 600 seconds ,but i still get ERROR CODE 500, since this is very generic error, i am stuck
  • 06-29-2009, 5:21 AM In reply to

    Re: Stopping timeouts on IIS

    Any suggestions on this
  • 06-29-2009, 9:35 PM In reply to

    Re: Stopping timeouts on IIS

    deepakts, this forum is for PHP related issues, so it might be worth posting your question in a more appropriate forum if you haven't done so already.

    ----------------
    Dominic Ryan
    Microsoft IIS MVP
    www.iis-aid.com
    My IIS articles
    My PHP articles
    My How-to guides
Page 1 of 1 (11 items)
Microsoft Communities