Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have an ASP.NET application that returns image files to the user. When a user requests an image, the application sets the appropriate content information in the header, and returns the bytes. We have found that if the browser prompts the user to open or save the image, the IIS request will remain in "Send Response" state until the user chooses one of the prompt options.

The issue is that some users are not closing the prompt, which prevents the request from completing. Once this happens, other requests are also prevented from completing. Eventually, all the available threads are used up.

Is there any way to force IIS to forcefully kill a request after a timeout period? We've tried setting the "executionTimeout", but this doesn't have any effect, as the request thread isn't doing any work while it's waiting for the client to answer the prompt.

The connection timeout is set to the default of 120 seconds.

share|improve this question
    
What kind of images? If they are standard web safe images (png, jpg, gif) then I'd argue you're not setting the content type correctly. –  squillman Aug 9 '12 at 15:40
    
We usually see this with tiff images, but it can happen with any image type if the user has the "Always ask before opening this type of image" box checked on the file download dialog. –  Andy Wilson Aug 9 '12 at 17:10
add comment

1 Answer

What is your Connection Timeout (HTTP KeepAlive timeout)?

Web Site > Connection Limits > Connection Timeout. The default is 120 seconds. (Not to be confused with the application pool timeout). Sometimes applications that use session affinity (sticky sessions) have a higher value for the timeout. Setting this too high would increase connections.

You should also ensure you have the latest http.sys hotfix installed, version 6.1.7601.21886.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.