Comment 2 for bug 1419916

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swift (master)

Reviewed: https://review.openstack.org/156943
Committed: https://git.openstack.org/cgit/openstack/swift/commit/?id=16ee994c1ea4ddcfaeae26babada6382daa69bc9
Submitter: Jenkins
Branch: master

commit 16ee994c1ea4ddcfaeae26babada6382daa69bc9
Author: Christian Schwede <email address hidden>
Date: Wed Feb 18 10:17:23 2015 +0000

    Set connection timeout in container sync

    Container sync might get stuck without a connection timeout if the remote proxy
    is not responding.

    This patch sets a default timeout of 5.0 seconds for the connection attempt. The
    value is much higher than other connection timeouts inside Swift (0.5); however
    there might be a much higher latency to the remote peer, thus playing it safe.
    There is also a retry if the attempt timed out.

    Note that this setting only applies to the connection request itself. Setting
    this timeout does not apply when the remote proxy goes away during a request.

    Also added a short test to ensure urlopen is called with the timeout value.

    Co-Authored-By: Alistair Coles <email address hidden>

    Change-Id: Ic08a55157fa91fe1316653781adf4d66eead61bc
    Partial-Bug: 1419916