From: Yumei Huang <yuhuang@redhat.com>
To: passt-dev@passt.top, sbrivio@redhat.com
Cc: david@gibson.dropbear.id.au, yuhuang@redhat.com
Subject: [PATCH 0/2] Retry SYNs for inbound connections
Date: Sun, 28 Sep 2025 15:29:44 +0800 [thread overview]
Message-ID: <20250928072946.15284-1-yuhuang@redhat.com> (raw)
When a client connects, SYN would be sent to guest only once. If the
guest is not connected or ready at that time, the connection will be
reset in 10s. These patches introduce the SYN retry mechanism similar
to retransmits.
Tested two scenarios:
1) A guest is connected in a few seconds, the client connects
to the guest successfully.
2) No guest connects at all, the client gets "Connection reset" in 80s.
Also ran the testsuits, no regression issue introduced.
Yumei Huang (2):
tcp: Rename "retrans" of struct tcp_tap_conn and tcp_tap_transfer
tcp: Resend SYN for inbound connections
tcp.c | 21 ++++++++++++++-------
tcp_conn.h | 8 ++++----
2 files changed, 18 insertions(+), 11 deletions(-)
--
2.47.0
next reply other threads:[~2025-09-28 7:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-28 7:29 Yumei Huang [this message]
2025-09-28 7:29 ` [PATCH 1/2] tcp: Rename "retrans" of struct tcp_tap_conn and tcp_tap_transfer Yumei Huang
2025-09-29 6:06 ` David Gibson
2025-09-28 7:29 ` [PATCH 2/2] tcp: Resend SYN for inbound connections Yumei Huang
2025-09-29 6:25 ` David Gibson
2025-09-29 22:23 ` Stefano Brivio
2025-09-30 1:05 ` David Gibson
2025-09-30 6:04 ` Yumei Huang
2025-09-29 22:23 ` Stefano Brivio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250928072946.15284-1-yuhuang@redhat.com \
--to=yuhuang@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).