Skip to content

fix(transport): handle connection error correctly (#650)#651

Merged
mxschmitt merged 11 commits into
microsoft:masterfrom
x0day:master
May 4, 2021
Merged

fix(transport): handle connection error correctly (#650)#651
mxschmitt merged 11 commits into
microsoft:masterfrom
x0day:master

Conversation

@x0day

@x0day x0day commented Apr 26, 2021

Copy link
Copy Markdown
Contributor

@ghost

ghost commented Apr 26, 2021

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

Comment thread playwright/_impl/_transport.py
@mxschmitt

Copy link
Copy Markdown
Contributor

A test for ws connection timeout for sync and async would be awesome.

@x0day

x0day commented Apr 26, 2021

Copy link
Copy Markdown
Contributor Author

A test for ws connection timeout for sync and async would be awesome.

ok

Comment thread playwright/async_api/_context_manager.py
@x0day

x0day commented Apr 27, 2021

Copy link
Copy Markdown
Contributor Author

add the test test_connect_to_closed_server_without_hangs, please check.

@x0day x0day requested a review from mxschmitt April 27, 2021 06:25
Comment thread playwright/_impl/_browser_type.py Outdated
Comment thread playwright/_impl/_transport.py

@mxschmitt mxschmitt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good but the currently handling of having run and start is confusing I think from my perspective. Will take a more detailed look later how to avoid that.

@x0day

x0day commented Apr 27, 2021

Copy link
Copy Markdown
Contributor Author

Looks good but the currently handling of having run and start is confusing I think from my perspective. Will take a more detailed look later how to avoid that.

yep maybe we can fix hang error at this time and think about allow channel be inited after connect or launch at next version.

@mxschmitt mxschmitt merged commit 82885a1 into microsoft:master May 4, 2021
pavelfeldman added a commit to pavelfeldman/playwright-python that referenced this pull request May 7, 2021
) (microsoft#651)"

This reverts commit 82885a1.
Sorry about the revert. I don't think this handles the connection
timeout properly, so let me see if we can get a better fix here.
pavelfeldman added a commit that referenced this pull request May 7, 2021
…" (#670)

This reverts commit 82885a1.
Sorry about the revert. I don't think this handles the connection
timeout properly, so let me see if we can get a better fix here.
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.

3 participants