Comment 1 for bug 1130649

Revision history for this message
Soren Hansen (soren) wrote :

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.