Skip to content

subsys: net: socket_tls: Connection vanishes -> Caller blocked forever #78494

@clamattia

Description

@clamattia

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 with tls 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 bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions