vavavr00m / boto

Automatically exported from code.google.com/p/boto
1 stars 0 forks source link

Trouble with timeouts... #273

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm currently experiencing intermittent socket timeouts when using boto to
make requests to the Amazon Product Advertising API (using
AWSQueryConnection) from instances on EC2. I don't think boto is at all
responsible for these...

It has made me want to configure the timeout on the connection though. 

It's great to be able to set the number of retries, but without the ability
to affect socket timeout values through boto even one retry takes too long
for my use case.

Adjusting the system-wide socket timeout seems drastic (and foolish).

Is there currently a technique to achieve this for a boto connection which
I'm unaware of? Is it a facility which is desirable in boto?

Thanks for your time.

Original issue reported on code.google.com by rupert.r...@googlemail.com on 11 Sep 2009 at 11:31

GoogleCodeExporter commented 9 years ago
I'm with Rupert on this one, we've had some latiency issues with AWS, seems to 
be
random and, again, not a bug in Boto.
However, being able to set the timeout on requests would be super sweet since 
we've
been having difficulty catching the timeout and recovering from it.

Original comment by aaron.wa...@gmail.com on 30 Oct 2009 at 11:32

GoogleCodeExporter commented 9 years ago
What version of Python are you using?

Original comment by Mitch.Ga...@gmail.com on 31 Oct 2009 at 12:06

GoogleCodeExporter commented 9 years ago
Check out:

http://www.voidspace.org.uk/python/articles/urllib2.shtml#sockets-and-layers

for some useful info on this.  I think version 2.6 of Python added an explicit
timeout parameter to the HTTPConnection constructor.

Original comment by Mitch.Ga...@gmail.com on 31 Oct 2009 at 12:10

GoogleCodeExporter commented 9 years ago
We're using Python 2.6.3.
Thanks for the link, i'll let you know if we keep having issues.

Original comment by aaron.wa...@gmail.com on 31 Oct 2009 at 12:50

GoogleCodeExporter commented 9 years ago

Original comment by Mitch.Ga...@gmail.com on 21 Dec 2009 at 7:48