Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease timeout when connecting to websocket #6730

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/ert/ensemble_evaluator/sync_ws_duplexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,14 @@ async def _connect(self) -> None:
extra_headers=self._extra_headers,
max_size=2**26,
max_queue=500,
open_timeout=60,
open_timeout=5,
ping_timeout=60,
ping_interval=60,
close_timeout=60,
)

await wait_for_evaluator(
base_url=self._hc_uri,
token=self._token,
cert=self._cert,
base_url=self._hc_uri, token=self._token, cert=self._cert, timeout=5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use open_timeout instead of hard_coding it?

)

self._ws = await connect
Expand Down
Loading