Open GoogleCodeExporter opened 9 years ago
I've never seen this behavior before and I don't have an explanation yet.
There are no explicit timeouts managed in boto but the underlying libraries
like httplib and socket should be handling that layer. From your example code,
it looks like this is single-threaded. Is that correct?
Original comment by Mitch.Ga...@gmail.com
on 27 Aug 2010 at 10:41
Yes, I was surprised it didn't timeout in httplib or socket... My code is
single threaded.
Original comment by sch9...@gmail.com
on 27 Aug 2010 at 3:12
it's curious to see that this is happening outside of the _mexe() code, so that
should mean that the request succeeded, but it's getting hung up reading the
response back. For that to happen, something very strange must be going on. Can
you turn on the boto debugging and post the output that you see right when the
process is hung?
Have you waited > 2 minutes and it still doesn't give up? At some point the TCP
connection itself should time-out, so I can't see how it's hanging unless SDB
is sending back a keep-alive signal.
Original comment by koper...@gmail.com
on 27 Aug 2010 at 7:55
I've waited hours and it never gives up. I'll try to repro tonight and also
capture a tcpdump so we can see if packets are still going back and forth.
Original comment by sch9...@gmail.com
on 27 Aug 2010 at 8:25
Sorry if I'm being dense, but I'm not seeing how to turn on debugging for SDB.
conn.debug to a value higher than 1, I get output that shows the HTTP stuff,
but nothing internal to boto (and if I set it to 1, I get no debug output)...
In that case, the last thing I see before it hangs is:
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: text/xml
header: Transfer-Encoding: chunked
header: Date: Sat, 28 Aug 2010 01:35:11 GMT
header: Server: Amazon SimpleDB
Original comment by sch9...@gmail.com
on 28 Aug 2010 at 1:43
I wonder if the occasional hang is dependent on platform. I found this issue
via a Google search because a similar issue is happening to me; in both my case
and the original author's case, our platform is Mac (his was 10.6.4, I'm
10.6.8). I'm running his proposed code on a Linux box right now, doing an
item.save() every .1 seconds; I've gone through about 91,000 saves so far (I
started earlier today) with no hangs. So:
Mac: Intermittent hangs
Linux: No hangs so far.
Original comment by royrapop...@gmail.com
on 17 Jul 2011 at 9:36
Original issue reported on code.google.com by
sch9...@gmail.com
on 22 Aug 2010 at 5:31