net/tcp: Fix keep-alive implementation

The TCP keep-alive implementation would send the probes and abort the
connection correctly, but without waking up the affected socket and
marking the connection as aborted. This patch from zhhyu7 in #16447
resolves the issue.

Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
Matteo Golin
2025-05-28 00:08:35 -04:00
committed by Alan C. Assis
parent 302ceb701b
commit ab756e8dd7

View File

@@ -701,6 +701,8 @@ void tcp_timer(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn)
* connection.
*/
devif_conn_event(conn->dev, TCP_ABORT,
conn->sconn.list);
tcp_stop_monitor(conn, TCP_ABORT);
}
else