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

fix: implement protocol-level timeouts #9877

Merged
merged 1 commit into from
Mar 21, 2023
Merged

fix: implement protocol-level timeouts #9877

merged 1 commit into from
Mar 21, 2023

Conversation

OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented Mar 17, 2023

This PR implements timeouts for the protocol-level calls and a new launch/connect option called protocolTimeout. The default value will be 30s and there is an option to disable it by providing an undefined/negative/0 value.

Drive-by: refactored callbacks to encapsulate timeouts and reduce duplication. Also, marked ConnectionCallback as internal as there was no way to use it externally anyway.

Closes #9801

For follow-ups: 1) we should probably mark connection as an internal class (but we need to deprecate it first and see if there are users for it) and changes the constructor parameters to accept an object instead of positional arguments. 2) we could probably do smth better for the original message/protocol error things.

@OrKoN OrKoN force-pushed the orkon/timeouts-for-cdp branch 3 times, most recently from 956833c to 547b76a Compare March 17, 2023 13:28
@OrKoN OrKoN force-pushed the orkon/timeouts-for-cdp branch 6 times, most recently from e3d9c57 to b349a21 Compare March 21, 2023 07:03
@OrKoN OrKoN requested a review from jrandolf March 21, 2023 07:04
@OrKoN OrKoN marked this pull request as ready for review March 21, 2023 07:04
This PR implements timeouts for the protocol-level calls and a new launch/connect option called protocolTimeout. The default value will be 30s and there is an option to disable it by providing an undefined/negative/0 value.

Drive-by: refactored callbacks to encapsulate timeouts and reduce duplication. Also, marked ConnectionCallback as internal as there was no way to use it externally anyway.

Closes #9801

For follow-ups: we should probably mark connection as an internal class (but we need to deprecate it first and see if there are users for it) and changes the constructor parameters to accept an object instead of positional arguments.
@OrKoN OrKoN enabled auto-merge (squash) March 21, 2023 11:37
@OrKoN OrKoN merged commit 510b36c into main Mar 21, 2023
@OrKoN OrKoN deleted the orkon/timeouts-for-cdp branch March 21, 2023 11:53
@release-please release-please bot mentioned this pull request Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: page.screenshot (silently) times out when trying to take a screenshot of an alert
2 participants