From 790f087a67fcc0cc7730cedd1a225d58a82ddf5d Mon Sep 17 00:00:00 2001 From: Stuart McLaren Date: Fri, 18 Jan 2013 14:17:21 +0000 Subject: 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 --- bin/swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/swift b/bin/swift index e30d697..7fdaf39 100755 --- a/bin/swift +++ b/bin/swift @@ -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() -- cgit v1.2.1