mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 22:16:23 +00:00
Increase default timeout to 300s (as in the plugin)
This commit is contained in:
1 parent
eff50cf682
commit
f593067c33
1 file changed
+5
-1
@@ -41,9 +41,13 @@ class JetBrainsPluginClient(ToStringMixin):
|
||||
"""
|
||||
|
||||
BASE_PORT = 0x5EA2
|
||||
PLUGIN_REQUEST_TIMEOUT = 300
|
||||
"""
|
||||
the timeout used for request handling within the plugin (a constant in the plugin)
|
||||
"""
|
||||
last_port: int | None = None
|
||||
|
||||
def __init__(self, port: int, timeout: int = 30):
|
||||
def __init__(self, port: int, timeout: int = PLUGIN_REQUEST_TIMEOUT):
|
||||
self.base_url = f"http://127.0.0.1:{port}"
|
||||
self.timeout = timeout
|
||||
self.session = requests.Session()
|
||||
|
||||
Reference in new issue
Block a user