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>
Reviewed: https:/ /review. openstack. org/156943 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=16ee994c1ea 4ddcfaeae26baba da6382daa69bc9
Committed: https:/
Submitter: Jenkins
Branch: master
commit 16ee994c1ea4ddc faeae26babada63 82daa69bc9
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: Ic08a55157fa91f e1316653781adf4 d66eead61bc
Partial-Bug: 1419916