[cp][stable] Cherry-pick fix to secure socket connection unhandled exception #45214
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
merge-to-stable
Please cherry-pick https://dart.googlesource.com/sdk/+/ea3dfc9ac4617ad0346b515596636a1089ecc8a1 into stable.
This fixes "Bad state: Future already completed" unhandled exception that arises in cases when https connection attempt errors out or is aborted shortly after it started, before name resolution had a chance to complete. Original issue #45047.
The commit merges cleanly into stable.
/cc @mraleph @a-siva @franklinyow @vsmenon
The text was updated successfully, but these errors were encountered: