From 06460e22387e12f9cff0343b7be2b8d39bc2b338 Mon Sep 17 00:00:00 2001 From: Vito <5780819+Tapanito@users.noreply.github.com> Date: Wed, 10 Sep 2025 13:51:49 +0200 Subject: [PATCH] increases tls handshake timeout --- src/xrpld/overlay/detail/ConnectAttempt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xrpld/overlay/detail/ConnectAttempt.h b/src/xrpld/overlay/detail/ConnectAttempt.h index aa79cb9a07..5e185bfd7e 100644 --- a/src/xrpld/overlay/detail/ConnectAttempt.h +++ b/src/xrpld/overlay/detail/ConnectAttempt.h @@ -88,8 +88,8 @@ private: Complete // Connection successfully established }; - // Global timeout for entire connection process (hard limit) - static constexpr std::chrono::seconds connectTimeout{20}; + // A timeout for connection process, greater than all step timeouts + static constexpr std::chrono::seconds connectTimeout{25}; /** * @struct StepTimeouts @@ -103,7 +103,7 @@ private: static constexpr std::chrono::seconds tcpConnect{ 8}; // TCP connection timeout static constexpr std::chrono::seconds tlsHandshake{ - 5}; // SSL handshake timeout + 8}; // SSL handshake timeout static constexpr std::chrono::seconds httpWrite{ 2}; // HTTP write timeout static constexpr std::chrono::seconds httpRead{3}; // HTTP read timeout