You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "zhhyu7 (via GitHub)" <gi...@apache.org> on 2026/01/14 07:16:22 UTC

[PR] tcp_timer.c: send TCP_RST when keepalive timeout [nuttx]

zhhyu7 opened a new pull request, #17888:
URL: https://github.com/apache/nuttx/pull/17888

   ## Summary
   The RFC requires sending an TCP_RST packet in this scenario, so to better comply with the standard definition, the sending of TCP_RST is added.
   
   ## Impact
   tcp keepalive timeout
   
   ## Testing
   two sim:matter
   NuttX test log:
   ```
   15:09:37.982173 IP 10.0.1.2.15149 > 10.0.1.3.7777: Flags [S], seq 1282192172, win 16384, options [mss 1460], length 0
   15:09:37.985750 IP 10.0.1.3.7777 > 10.0.1.2.15149: Flags [S.], seq 1282192172, ack 1282192173, win 16384, options [mss 1460], length 0
   15:09:37.992246 IP 10.0.1.2.15149 > 10.0.1.3.7777: Flags [.], ack 1, win 16384, length 0
   15:09:44.002307 IP 10.0.1.2.15149 > 10.0.1.3.7777: Flags [.], ack 1, win 16384, length 0
   15:09:46.012481 IP 10.0.1.2.15149 > 10.0.1.3.7777: Flags [.], ack 1, win 16384, length 0
   15:09:47.173766 IP 10.0.1.3.7777 > 10.0.1.2.15149: Flags [.], ack 1, win 16384, length 0
   15:09:49.129417 IP 10.0.1.3.7777 > 10.0.1.2.15149: Flags [.], ack 1, win 16384, length 0
   15:09:51.142228 IP 10.0.1.2.15149 > 10.0.1.3.7777: Flags [.], ack 1, win 16384, length 0
   15:09:53.152534 IP 10.0.1.2.15149 > 10.0.1.3.7777: Flags [.], ack 1, win 16384, length 0
   15:09:55.162201 IP 10.0.1.2.15149 > 10.0.1.3.7777: Flags [.], ack 1, win 16384, length 0
   15:09:57.172304 IP 10.0.1.2.15149 > 10.0.1.3.7777: Flags [R.], seq 1, ack 1, win 16384, length 0
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] tcp_timer.c: send TCP_RST when keepalive timeout [nuttx]

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #17888:
URL: https://github.com/apache/nuttx/pull/17888


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org