This happens only if the request is a POST. GET request continues running however long it takes. The time it terminates the request is slightly larger than Connection Timeout given in IIS 6.0 (default value 120 secs). Please note that same code works in IIS 5.0 on Win2k without any problem. The Connection Timeout value in IIS 5.0 is 900 sec but I have changed it to 120 secs and IIS 5.0 never disconnects the client POST request.
IIS 6.0 doesn't disconnect the request if asp has written something before starting the long running task. For example if I change the code to ...
if (Request("Text1") = "10") then
Call Response.Write("<!-- Some Dummy Output -->")
it works with IIS 6.0
Could this be a bug in IIS 6.0 or a desired behavior? If it is a desired behavior then why it happens only for POST and not for GET?
Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!