rackspace/python-cloudfiles — Issue #50: Subsequent calls to send cause IOError ([Errno 32] Broken pipe)
Author: Schibum
Created: 2011-10-12 13:07:00+00:00
State: open

The following snipset demonstrates the problem:

https://gist.github.com/1281146

Subsequent calls to Object.send() fail if they are approx 20 seconds apart. The connection seems to be closed after some seconds of inactivity by the server. While some other methods (those that use Connection.make_request()) automatically reconnect in such cases (IOError), send() and write() do not.

I'm not sure if this can be fixed somehow. I guess simply restarting the request is not possible as data sources cannot always be rewinded.