A lot of "time out". What could that be?

Nov 2, 2008 at 1:17 PM
Hi there

after uploading some files in a batchmode using ThreeSharp I get a lot of timeouts when creating new request to Amazon S3 after others still happend...

Am i the onliest person with that problem? I can not imagin that this is a problem of ThreeSharp, because these timeouts occure on the following lines in ThreeSharpQuery::GenerateAndSendHttpWebRequest, which works - in general - properly:

using (Stream httpWebRequestStream = httpWebRequest.GetRequestStream())

After some uploads the first timeout comes. And then - mostly - every further request ends up with an timeout. I have to restart my application, and everything works fine again, until the next timeout... I spent a lot of hours to analyze this problem.

Is this my internet connection (even if it makes no problems in other cases)? is this amazon? Has .NET a strange socket-implementation?

Are there others with the same experience?

kind regards!
Jan 19, 2009 at 8:01 PM
I'm experiencing the same thing.  I'll make a few successful requests, then it will timeout, and will continue with the timeouts until I reset the app pool.  Any ideas?
Feb 4, 2009 at 11:29 AM
You should first check out your System.Net.ServicePointManager.DefaultConnectionLimit. Make sure you aren't using too many connections at once.

Also I've had problems with Threesharp leaking connections which caused the application (and even the host machine) to become unresponsive. Right now I'm just using threesharp to sign normal HTTP GET URLs and retrieve them with a standard .NET HttpWebRequest because of this.

If you ever find the leak I'd be very interested to hear.
Mar 7, 2009 at 5:12 PM
We have a new release coming out soon (Next week or so).  We've plugged a couple of possible leaks in the connection pool.  More details soon.

Joel Wetzel
Affirma Consulting