Remove check for requests version
requirements.txt has requests>=2.5.2, so requests version is always going to be >= 2.4.1 and there's no need to check it. Change-Id: I8069cfbd54ce716979bc991d137bd2e71790a1e4
This commit is contained in:
@@ -906,7 +906,6 @@ class TCPKeepAliveAdapter(requests.adapters.HTTPAdapter):
|
|||||||
http://blogs.msdn.com/b/windowsazurestorage/archive/2010/06/25/nagle-s-algorithm-is-not-friendly-towards-small-requests.aspx
|
http://blogs.msdn.com/b/windowsazurestorage/archive/2010/06/25/nagle-s-algorithm-is-not-friendly-towards-small-requests.aspx
|
||||||
"""
|
"""
|
||||||
def init_poolmanager(self, *args, **kwargs):
|
def init_poolmanager(self, *args, **kwargs):
|
||||||
if requests.__version__ >= '2.4.1':
|
|
||||||
socket_options = [
|
socket_options = [
|
||||||
# Keep Nagle's algorithm off
|
# Keep Nagle's algorithm off
|
||||||
(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1),
|
(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1),
|
||||||
|
|||||||
Reference in New Issue
Block a user