I have an application that provides websites for information. It looks like 20-45 minutes after creating the HttpWebRequests, a bunch of returned timeouts. One thing we do is attach an anonymous BindIPDelegate function to give the request a specific IP address, since we go around 150 IP addresses.
I am setting up an HttpWebRequest object with the following settings.
- User Agent Setup
- Set Keep-Alive to false so that the IP address is not reused
- Set TimeOut to 60,000 (60 seconds)
- Set ReadWriteTimeout to 60,000 (60 seconds)
- Setting proxy server to null
- Set Accept To /
- Configure CookieContainer on the new CookieContainer
- Piplined to true setting
- Configure automatic decompression for deflation and gzip
The application uses .NET 4.0 and runs on Windows Server 2008 R2.
This definitely looks like something to the /TCP/.NET application, because if I restart the application it works fine again. It also seems more or less similar to the fact that the timeout is just in line, waiting for a local port or something like that.
Any ideas?
Chad moran
source share