Download command don't have resp_chunk_size option

Bug #1473929 reported by Chung Chih, Hung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-swiftclient
Confirmed
Undecided
JuliusChen

Bug Description

Depends on this bug: https://bugs.launchpad.net/horizon/+bug/1427819
It had fixed web-server memory overrun when downloading objects.
But swift cli didn't export resp_chunk_size option.
It was assigned to constant value 65536 in code.

Changed in python-swiftclient:
assignee: nobody → inwinSTACK (inwinstack)
JuliusChen (julius-j-g)
Changed in python-swiftclient:
assignee: inwinSTACK (inwinstack) → JuliusChen (julius-j-g)
Revision history for this message
Tim Burke (1-tim-z) wrote :

I don't know that it makes sense for the CLI to expose a chunk-size option. Aren't users just streaming content to a file or stdout? Why should they care about the chunk size? If it causes performance problems, we may need to choose a better value, though.

SwiftService certainly could (and probably should) make it configurable, however. See https://github.com/openstack/python-swiftclient/blob/3.1.0/swiftclient/service.py#L1125

Changed in python-swiftclient:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.