Skip to content
Commit 60fe9f9d authored by Robert Lubos's avatar Robert Lubos Committed by Anas Nashif
Browse files

net: sockets: tls: Prevent infinite block during handshake



In case peer goes down or we disconnect from the network during the
TLS handshake, the TLS socket may block indefinitely during
connect()/accept(), waiting for data from the peer. This should be
avoided, hence use the preconfigured timeout for the TLS handshake,
same as we use for TCP-level handshake.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
(cherry picked from commit fc007eee)
parent 60fb8827
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment