From: Tung Quang Nguyen <tung.quang.nguyen@est.tech>
To: shike liu <liushike123@gmail.com>
Cc: "jmaloy@redhat.com" <jmaloy@redhat.com>,
"davem@davemloft.net" <davem@davemloft.net>,
"edumazet@google.com" <edumazet@google.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"horms@kernel.org" <horms@kernel.org>,
"shuah@kernel.org" <shuah@kernel.org>,
"tipc-discussion@lists.sourceforge.net"
<tipc-discussion@lists.sourceforge.net>,
"linux-kselftest@vger.kernel.org"
<linux-kselftest@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: RE: [RFC net-next 1/2] tipc: abort pending connects when the peer node is lost
Date: Fri, 9 Oct 2026 12:10:22 +0000 [thread overview]
Message-ID: <AM7P189MB113775D0F9D5E892C615FE81C6922@AM7P189MB1137.EURP189.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <CAL9mPHtH3Uy51MROGgNC8bpRisodf4_xoAiEqw=oK9Eayc_fPw@mail.gmail.com>
>The distinction I intended to address is between a connection setup timeout
>and a confirmed loss of contact with the peer. A short timeout also expires
>when the peer is reachable but acceptance is delayed,
That can be addressed by "retry" as I suggested.
> whereas this change
>reports EHOSTUNREACH once the node-loss path has determined that no
>usable link remains.
I do not think it is needed.
User applications can subscribe for node-loss event. When no link is up, subscribed process will receive the loss event. This process can close the waiting/blocking socket.
>
>Also, from the current code, a connection-wait timeout leaves the socket in
>TIPC_CONNECTING. Calling blocking connect() again on that socket continues
>waiting for the pending handshake rather than starting a fresh attempt
This behavior is expected and we will not allow a fresh connection from a waiting/blocking socket to avoid buffer-overload at listening socket/server.
>To confirm the test scale, did you mean 4,000 concurrent connection attempts?
Yes.
next prev parent reply other threads:[~2026-10-09 12:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-29 6:47 [RFC net-next 0/2] tipc: notify pending connects of peer node loss liushike
2026-09-29 6:47 ` [RFC net-next 1/2] tipc: abort pending connects when the peer node is lost liushike
2026-10-08 6:46 ` Tung Quang Nguyen
2026-10-09 2:38 ` shike liu
2026-10-09 12:10 ` Tung Quang Nguyen [this message]
2026-09-29 6:47 ` [RFC net-next 2/2] selftests: net: cover pending TIPC connects on peer node loss liushike
2026-09-29 6:54 ` [RFC net-next 0/2] tipc: notify pending connects of " netdev-bot+sinfo
[not found] ` <CAL9mPHsf_10zX4Z_2WFHNJob7Tkfnaw6sp03q2+ujnTygn1Ucg@mail.gmail.com>
2026-09-30 2:08 ` shike liu
2026-10-08 1:51 ` shike liu
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=AM7P189MB113775D0F9D5E892C615FE81C6922@AM7P189MB1137.EURP189.PROD.OUTLOOK.COM \
--to=tung.quang.nguyen@est.tech \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=jmaloy@redhat.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=liushike123@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=tipc-discussion@lists.sourceforge.net \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®