mirror of
https://github.com/apache/nuttx.git
synced 2025-12-07 01:44:23 +08:00
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:
committed by
Alan C. Assis
parent
302ceb701b
commit
ab756e8dd7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user