Skip to content

Tags: microsoft/react-native-windows

Tags

react-native-windows_v0.82.0

Toggle react-native-windows_v0.82.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix unhandled synchronous throw from WebSocket ConnectAsync (#15783) (#…

…15788)

* 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

user-vmorozov-probe-tag-141354675

Toggle user-vmorozov-probe-tag-141354675's commit message
probe tag 141354675

user-vmorozov-probe-tag-141352166

Toggle user-vmorozov-probe-tag-141352166's commit message
probe tag 141352166

user-vmorozov-probe-tag-629004

Toggle user-vmorozov-probe-tag-629004's commit message
probe tag 629004