summaryrefslogtreecommitdiff
path: root/swiftclient/utils.py
diff options
context:
space:
mode:
authorStuart McLaren <stuart.mclaren@hp.com>2015-03-04 14:31:00 +0000
committerAlistair Coles <alistair.coles@hpe.com>2016-01-08 17:12:02 +0000
commit4af623bcf171a63240849b84b9359a4f74471455 (patch)
tree5d44a4d43577cb71fa74ba70fd9d5b1ff84c42b5 /swiftclient/utils.py
parentd1e310958801c1e058a933a43b2c7e9552e85772 (diff)
downloadpython-swiftclient-4af623bcf171a63240849b84b9359a4f74471455.tar.gz
Retry download of object body
Currently the swift client retries establishing a connection to the server (by default up to 5 times). However, when downloading an object, once the connection has been established and the inital headers have been returned, no attempt is made to retry. So, for example, if 99MB of a 100MB object have been downloaded and the connection is then lost, the download will fail. This patch changes the behaviour to re-establish the connection and fetch the remaining bytes using the 'Range' header to offset. Data retry is not yet supported if the original request is for a subset of the object data (ie uses the 'Range' header), or if resp_chunk_size has not been set. The object's etag is checked using If-Match to make sure the object data hasn't changed since the start of the download. Change-Id: Iab47f10081ff39f6d344dbc2479cbc3bfd1c5b29
Diffstat (limited to 'swiftclient/utils.py')
0 files changed, 0 insertions, 0 deletions