Skip to content
Commit 14ced754 authored by Léonard Bise's avatar Léonard Bise Committed by Jukka Rissanen
Browse files

net: tcp: Do not send FIN when closing listening sockets



A net context in LISTENING mode waits for incoming connections, once
a new connection is established a new net context is spawned which
is responsible for handling the new connection.
Therefore when closing a LISTENING context it is not useful to send FIN
as it is never connected. Actually closing the connection would be done
by calling close on the spawned net context which is returned by the
accept call.

Signed-off-by: default avatarLéonard Bise <leonard.bise@gmail.com>
parent 7a8ac5e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment