@@ -375,7 +375,7 @@ def execute(self, command, params):
375
375
LOGGER .debug ("%s %s %s" , command_info [0 ], url , str (trimmed ))
376
376
return self ._request (command_info [0 ], url , body = data )
377
377
378
- def _request (self , method , url , body = None , timeout = 120 ):
378
+ def _request (self , method , url , body = None ):
379
379
"""Send an HTTP request to the remote server.
380
380
381
381
:Args:
@@ -397,12 +397,12 @@ def _request(self, method, url, body=None, timeout=120):
397
397
body = None
398
398
399
399
if self ._client_config .keep_alive :
400
- response = self ._conn .request (method , url , body = body , headers = headers , timeout = timeout )
400
+ response = self ._conn .request (method , url , body = body , headers = headers , timeout = self . _client_config . timeout )
401
401
statuscode = response .status
402
402
else :
403
403
conn = self ._get_connection_manager ()
404
404
with conn as http :
405
- response = http .request (method , url , body = body , headers = headers , timeout = timeout )
405
+ response = http .request (method , url , body = body , headers = headers , timeout = self . _client_config . timeout )
406
406
statuscode = response .status
407
407
data = response .data .decode ("UTF-8" )
408
408
LOGGER .debug ("Remote response: status=%s | data=%s | headers=%s" , response .status , data , response .headers )
0 commit comments