diff options
author | Stuart McLaren <stuart.mclaren@hp.com> | 2013-01-18 14:17:21 +0000 |
---|---|---|
committer | Stuart McLaren <stuart.mclaren@hp.com> | 2013-06-04 16:33:18 +0000 |
commit | 790f087a67fcc0cc7730cedd1a225d58a82ddf5d (patch) | |
tree | af269fc89acca0a27769b18df4d6f339217adfd4 /bin | |
parent | 2d12f09c66e0221ba7f43cc64677c05486a42ea6 (diff) | |
download | python-swiftclient-790f087a67fcc0cc7730cedd1a225d58a82ddf5d.tar.gz |
Add option to disable SSL compression
Allows optionally disabling SSL compression. This can significantly
improve HTTPS upload/download performance in some cases -- in particular
when the object is not compressible and you have very high network
bandwidth.
Implements blueprint ssl-compression.
Change-Id: I1260055f9c2e83cdabfeb51aed11b3899bed4d55
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/swift | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -50,7 +50,8 @@ def get_conn(options): os_options=options.os_options, snet=options.snet, cacert=options.os_cacert, - insecure=options.insecure) + insecure=options.insecure, + ssl_compression=options.ssl_compression) def mkdirs(path): @@ -1268,6 +1269,11 @@ Examples: 'be verified. ' 'Defaults to env[SWIFTCLIENT_INSECURE] ' '(set to \'true\' to enable).') + parser.add_option('--no-ssl-compression', + action='store_false', dest='ssl_compression', + default=True, + help='Disable SSL compression when using https. ' + 'This may increase performance.') parser.disable_interspersed_args() (options, args) = parse_args(parser, argv[1:], enforce_requires=False) parser.enable_interspersed_args() |