@@ -375,7 +375,7 @@ def execute(self, command, params):
375375 LOGGER .debug ("%s %s %s" , command_info [0 ], url , str (trimmed ))
376376 return self ._request (command_info [0 ], url , body = data )
377377
378- def _request (self , method , url , body = None , timeout = 120 ):
378+ def _request (self , method , url , body = None ):
379379 """Send an HTTP request to the remote server.
380380
381381 :Args:
@@ -397,12 +397,12 @@ def _request(self, method, url, body=None, timeout=120):
397397 body = None
398398
399399 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 )
401401 statuscode = response .status
402402 else :
403403 conn = self ._get_connection_manager ()
404404 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 )
406406 statuscode = response .status
407407 data = response .data .decode ("UTF-8" )
408408 LOGGER .debug ("Remote response: status=%s | data=%s | headers=%s" , response .status , data , response .headers )
0 commit comments