Skip to content

Commit 82d8516

Browse files
sfc-gh-astachowskisfc-gh-pmotacki
authored andcommitted
Reverted breaking change
1 parent c6d69fe commit 82d8516

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/net/snowflake/client/core/HttpUtil.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ public static String executeGeneralRequest(
731731
*
732732
* @param httpRequest HttpRequestBase
733733
* @param retryTimeout retry timeout
734+
* @param authTimeout authenticator specific timeout
734735
* @param socketTimeout socket timeout (in ms)
735736
* @param retryCount max retry count for the request - if it is set to 0, it will be ignored and
736737
* only retryTimeout will determine when to end the retries
@@ -742,6 +743,7 @@ public static String executeGeneralRequest(
742743
public static String executeGeneralRequest(
743744
HttpRequestBase httpRequest,
744745
int retryTimeout,
746+
int authTimeout,
745747
int socketTimeout,
746748
int retryCount,
747749
CloseableHttpClient httpClient)
@@ -750,7 +752,7 @@ public static String executeGeneralRequest(
750752
return executeRequestInternal(
751753
httpRequest,
752754
retryTimeout,
753-
0,
755+
authTimeout,
754756
socketTimeout,
755757
retryCount,
756758
0, // no inject socket timeout

src/main/java/net/snowflake/client/jdbc/telemetry/TelemetryClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ private boolean sendBatch() throws IOException {
361361
? HttpUtil.executeGeneralRequest(
362362
post,
363363
TELEMETRY_HTTP_RETRY_TIMEOUT_IN_SEC,
364+
0,
364365
(int) HttpUtil.getSocketTimeout().toMillis(),
365366
0,
366367
this.httpClient)

0 commit comments

Comments
 (0)