Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: net: socket: tls: Fix race on TCP socket close
One of the tests closed the underlying TCP connection right after establishing one. This caused a certain race between incoming TLS handshake data and entering FIN1 state (experienced on nrF52840), where the TLS handshake data could be received after the FIN1 state was entered, causing the server side to send RST packet. This disrupted the test flow, as graceful TCP connection teardown was expected. Fix this, by adding a small delay for such case to avoid the race. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
- Loading branch information