anchao commented on PR #6562: URL: https://github.com/apache/incubator-nuttx/pull/6562#issuecomment-1180204532
> I am sorry I do not understand what do you mean about complaining. I have no idea, here are tcp rto implement of LWIP for you reference: https://github.com/lwip-tcpip/lwip/blob/master/src/core/tcp.c#L1188-L1196 https://github.com/lwip-tcpip/lwip/blob/master/src/core/tcp.c#L1279-L1314 https://github.com/lwip-tcpip/lwip/blob/master/src/core/tcp_out.c#L1682-L1700 ``` /** * Requeue all unacked segments for retransmission * * Called by tcp_slowtmr() for slow retransmission. * * @param pcb the tcp_pcb for which to re-enqueue all unacked segments */ void tcp_rexmit_rto_commit(struct tcp_pcb *pcb) { LWIP_ASSERT("tcp_rexmit_rto_commit: invalid pcb", pcb != NULL); /* increment number of retransmissions */ if (pcb->nrtx < 0xFF) { ++pcb->nrtx; } /* Do the actual retransmission */ tcp_output(pcb); } ``` -- 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-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org