Skip to content

Commit 930ad2a

Browse files
committed
Don't send RST on ACK TCP segments in listen socket RX path
During guided migration between xlio_poll_groups, between detach and attach operations the new RX packets arrive to the respective listen socket due to 3T steering. Drop such packets with TCP RST, so the packets can be retransmitted eventually and the TCP stream recover. Signed-off-by: Dmytro Podgornyi <[email protected]>
1 parent 0c685ec commit 930ad2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/lwip/tcp_in.c

+2
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,10 @@ static void tcp_listen_input(struct tcp_pcb *pcb, tcp_in_data *in_data)
313313
if (in_data->flags & TCP_ACK) {
314314
/* For incoming segments with the ACK flag set, respond with a RST. */
315315
LWIP_DEBUGF(TCP_RST_DEBUG, ("tcp_listen_input: ACK in LISTEN, sending reset\n"));
316+
#if 0
316317
tcp_rst(in_data->ackno + 1, in_data->seqno + in_data->tcplen, in_data->tcphdr->dest,
317318
in_data->tcphdr->src, NULL);
319+
#endif
318320
} else if (in_data->flags & TCP_SYN) {
319321
LWIP_DEBUGF(TCP_DEBUG,
320322
("TCP connection request %" U16_F " -> %" U16_F ".\n", in_data->tcphdr->src,

0 commit comments

Comments
 (0)