-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Copy link
Labels
area: NetworkingbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bugMedium impact/importance bug
Description
As per discussion in discord. When the physical layer disappears, while in the connect
for a tls
socket, then the caller is blocked forever.
To reproduce
- A thread that calls
connect
withtls
to a server in a loop and closes again and sleeps a bit. - Make connection disappear, while in the
connect
for example disable hotspot on phone or remove power to the router. - The thread will be blocked forever.
Expected behavior
The calling thread is not blocked forever in those circumstances.
Impact
Will deadlock any connect
-calling thread in the described circumstances. The best case scenario is, that the watchdog will trigger if it was implemented properly.
@rlubos has a fix already #78492 thank you for the quick and helpful collaboration.
Metadata
Metadata
Assignees
Labels
area: NetworkingbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bugMedium impact/importance bug