net: tcp: Context still open after timeout on connect #44504
Labels
area: Networking
bug
The issue is a bug, or the PR is fixing a bug
priority: medium
Medium impact/importance bug
Describe the bug
When a TCP connect fails with a timeout, because there is no communication possible, the context is not cleaned up properly.
To Reproduce
Use the testcase as submitted in the pull request
#44501
Run the test using
./scripts/twister -T tests/net/socket/tcp -p qemu_x86
Expected behavior
When a socket connect timeouts, I would expect the context to close, no connection has been build, so why do we need to close it?
Impact
Could cause resource leakage in case of a bad network connection.
Environment:
The text was updated successfully, but these errors were encountered: