@@ -54,9 +54,8 @@ class ArangoClient:
54
54
str: Path to a custom CA bundle file or directory.
55
55
:type verify_override: Union[bool, str, None]
56
56
:param request_timeout: This is the default request timeout (in seconds)
57
- for http requests issued by the client. The default value is -1.
58
- Setting this parameter to any other value, will overwrite your
59
- request timeout set in the http client.
57
+ for http requests issued by the client if the parameter http_client is
58
+ not secified. The default value is 60.
60
59
None: No timeout.
61
60
int: Timeout value in seconds.
62
61
:type request_timeout: Any
@@ -71,7 +70,7 @@ def __init__(
71
70
serializer : Callable [..., str ] = lambda x : dumps (x ),
72
71
deserializer : Callable [[str ], Any ] = lambda x : loads (x ),
73
72
verify_override : Union [bool , str , None ] = None ,
74
- request_timeout : Any = - 1 ,
73
+ request_timeout : Any = 60 ,
75
74
) -> None :
76
75
if isinstance (hosts , str ):
77
76
self ._hosts = [host .strip ("/" ) for host in hosts .split ("," )]
@@ -92,7 +91,7 @@ def __init__(
92
91
self ._http = http_client or DefaultHTTPClient ()
93
92
# Sets the request timeout.
94
93
# This call can only happen AFTER initializing the http client.
95
- if request_timeout != - 1 :
94
+ if http_client is None :
96
95
self .request_timeout = request_timeout
97
96
98
97
self ._serializer = serializer
0 commit comments