Skip to content

[0.76] Fix unhandled synchronous throw from WebSocket ConnectAsync - #15794

Closed
Julio César Rocha (JunielKatarn) wants to merge 1 commit into
microsoft:0.76-stablefrom
jurocha-ms:OC/11296967/wsconex-76
Closed

[0.76] Fix unhandled synchronous throw from WebSocket ConnectAsync#15794
Julio César Rocha (JunielKatarn) wants to merge 1 commit into
microsoft:0.76-stablefrom
jurocha-ms:OC/11296967/wsconex-76

Conversation

@JunielKatarn

@JunielKatarn Julio César Rocha (JunielKatarn) commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

Backport of #15783

Microsoft Reviewers: Open in CodeFlow

…t#15783)

* Fix unhandled synchronous throw from ConnectAsync

(Generated summary)
ConnectAsync can throw synchronously (e.g. WININET_E_INVALID_CA /
0x80072EE1 on certificate validation failure) before returning an
IAsyncAction. Move the call inside the existing try/catch block so
such exceptions are routed through Fail() instead of propagating
unhandled. Add ConnectAsyncThrowsSynchronously unit test to cover
this path.

* Change files

* Add explaining comment

* clang format
@vmoroz

Copy link
Copy Markdown
Member

Julio César Rocha (@JunielKatarn) , I am closing this PR since we do not support 0.76 branch anymore. The PR, CI, and Release pipelines do not work for this branch.

auto-merge was automatically disabled March 27, 2026 16:57

Pull request was closed

@JunielKatarn
Julio César Rocha (JunielKatarn) deleted the OC/11296967/wsconex-76 branch April 29, 2026 21:35
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