Skip to content
Commit 91bf1b4e authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Johan Hedberg
Browse files

net: tcp: Set errno properly if connecting to non listening port



If we try to connect to a port which no socket is listening to,
we will get a packet with "ACK | RST" flags set. In this case
the errno should be ECONNREFUSED instead of ETIMEDOUT like we
used to return earlier.

Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@nordicsemi.no>
(cherry picked from commit ec4973dd)
parent 954bd84d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment