Skip to content
Commit ec4973dd authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Chris Friedt
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>
parent b8648800
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment