From 561e971f7f86c0d56424bf1ff29efb13b1e16751 Mon Sep 17 00:00:00 2001 From: Jiashuo Li Date: Sat, 6 Feb 2021 11:35:55 +0800 Subject: [PATCH 1/3] conn.conn_kw --- .../core/pipeline/transport/_bigger_block_size_http_adapters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py b/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py index 0bb8d9d0cc50..1c1e338421a9 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py @@ -41,5 +41,5 @@ def get_connection(self, url, proxies=None): conn = super(BiggerBlockSizeHTTPAdapter, self).get_connection(url, proxies) system_version = tuple(sys.version_info)[:3] if system_version[:2] >= (3, 7): - conn.conn_kw = {"blocksize": 32768} + conn.conn_kw['blocksize'] = 32768 return conn From 1cd5770ee66dbf7339e82d8423df7947cd87ae86 Mon Sep 17 00:00:00 2001 From: Xiang Yan Date: Mon, 8 Feb 2021 09:28:35 -0800 Subject: [PATCH 2/3] Update _bigger_block_size_http_adapters.py --- .../core/pipeline/transport/_bigger_block_size_http_adapters.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py b/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py index 1c1e338421a9..bbe18b12e90a 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py @@ -41,5 +41,7 @@ def get_connection(self, url, proxies=None): conn = super(BiggerBlockSizeHTTPAdapter, self).get_connection(url, proxies) system_version = tuple(sys.version_info)[:3] if system_version[:2] >= (3, 7): + if not conn.conn_kw: + conne.conn_kw = {} conn.conn_kw['blocksize'] = 32768 return conn From be0f8f83671616e9e4c066b54879cb9db5573945 Mon Sep 17 00:00:00 2001 From: Xiang Yan Date: Mon, 8 Feb 2021 09:45:17 -0800 Subject: [PATCH 3/3] Update _bigger_block_size_http_adapters.py --- .../core/pipeline/transport/_bigger_block_size_http_adapters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py b/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py index bbe18b12e90a..99f932c01cdd 100644 --- a/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py +++ b/sdk/core/azure-core/azure/core/pipeline/transport/_bigger_block_size_http_adapters.py @@ -42,6 +42,6 @@ def get_connection(self, url, proxies=None): system_version = tuple(sys.version_info)[:3] if system_version[:2] >= (3, 7): if not conn.conn_kw: - conne.conn_kw = {} + conn.conn_kw = {} conn.conn_kw['blocksize'] = 32768 return conn