From 924faa18565986978df0583cc5f0e62afeec837b Mon Sep 17 00:00:00 2001 From: Beq Date: Wed, 25 Jan 2023 09:38:51 +0000 Subject: [PATCH] [FIRE-32644]Proxy connect timeout too short Timeout was randomly failing leading to intermittent behaviour with slow localhost proxies and complete failure on network proxies. --- indra/llmessage/llproxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/llmessage/llproxy.cpp b/indra/llmessage/llproxy.cpp index 749e599c66..7e1e513ada 100644 --- a/indra/llmessage/llproxy.cpp +++ b/indra/llmessage/llproxy.cpp @@ -482,7 +482,7 @@ static apr_status_t tcp_blocking_handshake(LLSocket::ptr_t handle, char * dataou apr_size_t expected_len = outlen; - handle->setBlocking(1000); + handle->setBlocking(100000); // extend the arbitrary timeout value to 100ms. this should be more than enough for most LAN proxies and plenty for a localhost rv = apr_socket_send(apr_socket, dataout, &outlen); if (APR_SUCCESS != rv) @@ -498,7 +498,7 @@ static apr_status_t tcp_blocking_handshake(LLSocket::ptr_t handle, char * dataou rv = -1; } - ms_sleep(1); + // ms_sleep(1); // remove the unnecessary sleep. if (APR_SUCCESS == rv) {