[
https://issues.apache.org/jira/browse/NIFI-16624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18153154#comment-18153154
]
ASF subversion and git services commented on NIFI-16624:
--------------------------------------------------------
Commit 3c9203bff08d6663469e16aeb43ce93e91951fb1 in nifi's branch
refs/heads/main from Jim Halfpenny
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=3c9203bff08 ]
NIFI-16624 Add connect timeout to secure Site-to-Site socket connections
(#11960)
Co-authored-by: Claude Opus 5.5 <[email protected]>
Signed-off-by: David Handermann <[email protected]>
> Add connect timeout to secure Site-to-Site socket connections
> -------------------------------------------------------------
>
> Key: NIFI-16624
> URL: https://issues.apache.org/jira/browse/NIFI-16624
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Jim Halfpenny
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> EndpointConnectionPool creates secure RAW Site-to-Site connections with
> SSLSocketFactory.createSocket(hostname, port). That method connects inside
> the call without a timeout, so the configured communications timeout only
> applies as a read timeout. The non-secure path already connects with
> socket.connect(address, commsTimeout).
> If a peer silently drops packets, for example the old address of a restarted
> node on Kubernetes or a firewalled port, the connect blocks for the OS TCP
> connect timeout (about 130 seconds on Linux) instead of the communications
> timeout (default 30 seconds). This blocks the Remote Group Port task thread,
> so the node sends nothing to any peer while it waits. PeerSelector's peer
> status refresh uses the same method over RAW and blocks the same way.
> HTTP Site-to-Site is not affected because SiteToSiteRestApiClient sets a
> connect timeout.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)