none
Time Out After 230 seconds

    Question

  • Hi there

    I have a long running script on my Web App that is timing out after 230 seconds - always after 230 seconds.

    The error is "500 - the request timed out - the web service failed to respond within the specified time.

    I have tried setting the SCM_COMMAND_IDLE_TIMEOUT to 600 in the portal but this hasn't helped. I have also tried adding this value to the appSettings in the web.config but this hasn't made any difference.

    Have also tried setting the following within my script but this also hasn't made any difference.

    Server.ScriptTimeout = 600;

    Can anyone help please ?


    Thanks

    Sunday, April 17, 2016 8:04 PM

All replies

  • 230 seconds is the maximum amount of time that a request can take without sending any data back to the response. It is not configurable.

    If sending data back to keep it alive is not feasible, the suggested approach is to move to an async pattern. i.e.

    • First request starts the script and returns an http 202
    • Subsequent requests from client check the work, and eventually return 200 when it's done.
    Sunday, April 17, 2016 10:10 PM
    Moderator