IIS Keep-alives causing timeouts
A problem was just brought to my attention with a custom web application on a server that I administer. When users are loading pages, (ASP.NET pulling data from a SQL Server database) they are seeing an issue where shortly after the page connects, the site just sits there for approximately 2 minutes doing nothing. After that 2 minutes, the site then loads correctly.
This does not occur every time. Normal load time for this page is less than 20 seconds. The issue does not seem to be tied to heavy traffic as we've seen it not happen at all for hours during peak operations, but had it happen every 4-5 loads on a Saturday night at 11pm.
The reason that I know that it is just sitting there is that I've wiresharked both ends of the connection. You see the http GET request, the ACK, then dead silence on both ends. No traffic is sent or received. Two minutes later, the server sends a RST. Then the http GET request for the same file again which is transmitted without problem this time.
While the connection is hung, if I refresh the webpage, the page loads normally. While the page is hung, if I load the page on another computer, the page loads normally.
I did notice that if I turn Keep-alives off in IIS, the problem does not occur. However I don't believe that this is not an ideal solution. Doese anyone know of a workaround or resolution for this issue?
Thanks.
March 12th, 2008 7:45pm