Heh! No, cloudfiles.Connection.__init__() doesn't call socket.setdefaulttimeout after all. Here's the code snippet:
class Connection(object): [...] def __init__(self, username=None, api_key=None, **kwargs): [...] socket.setdefaulttimeout = int(kwargs.get('timeout', 5))
Later versions of python-cloudfiles has this problem fixed and exhibit this slowness regardless of the socket.setdefaulttimeout in duplicity. I suppose I should bug the python-cloudfiles upstream instead.
Heh! No, cloudfiles. Connection. __init_ _() doesn't call socket. setdefaulttimeo ut after all. Here's the code snippet:
class Connection(object):
socket. setdefaulttimeo ut = int(kwargs. get('timeout' , 5))
[...]
def __init__(self, username=None, api_key=None, **kwargs):
[...]
Later versions of python-cloudfiles has this problem fixed and exhibit this slowness regardless of the socket. setdefaulttimeo ut in duplicity. I suppose I should bug the python-cloudfiles upstream instead.