mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-19 14:46:58 +08:00
tcp: use tcp_ack_now rather than manually setting TF_ACK_NOW
This commit is contained in:
@@ -1921,7 +1921,7 @@ tcp_pcb_remove(struct tcp_pcb **pcblist, struct tcp_pcb *pcb)
|
||||
if ((pcb->state != TIME_WAIT) &&
|
||||
(pcb->state != LISTEN) &&
|
||||
(pcb->flags & TF_ACK_DELAY)) {
|
||||
pcb->flags |= TF_ACK_NOW;
|
||||
tcp_ack_now(pcb);
|
||||
tcp_output(pcb);
|
||||
}
|
||||
|
||||
|
||||
@@ -708,7 +708,7 @@ tcp_timewait_input(struct tcp_pcb *pcb)
|
||||
|
||||
if ((tcplen > 0)) {
|
||||
/* Acknowledge data, FIN or out-of-window SYN */
|
||||
pcb->flags |= TF_ACK_NOW;
|
||||
tcp_ack_now(pcb);
|
||||
tcp_output(pcb);
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user