Skip to content

Commit 9168cdf

Browse files
SNOW-1437655: Set auth timeout to 0 in not auth endpoint calls
1 parent d84639c commit 9168cdf

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ private JsonNode getQueryMetadata(String queryID) throws SQLException {
211211
HttpUtil.executeGeneralRequest(
212212
get,
213213
loginTimeout,
214-
authTimeout,
214+
0,
215215
(int) httpClientSocketTimeout.toMillis(),
216216
maxHttpRetries,
217217
getHttpClientKey());
@@ -967,7 +967,7 @@ protected void heartbeat() throws SFException, SQLException {
967967
HttpUtil.executeGeneralRequest(
968968
postRequest,
969969
SF_HEARTBEAT_TIMEOUT,
970-
authTimeout,
970+
0,
971971
(int) httpClientSocketTimeout.toMillis(),
972972
0,
973973
getHttpClientKey());

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ static void closeSession(SFLoginInput loginInput) throws SFException, SnowflakeS
10821082
HttpUtil.executeGeneralRequest(
10831083
postRequest,
10841084
loginInput.getLoginTimeout(),
1085-
loginInput.getAuthTimeout(),
1085+
0,
10861086
loginInput.getSocketTimeoutInMillis(),
10871087
0,
10881088
loginInput.getHttpClientSettingsKey());

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ public static StmtOutput execute(StmtInput stmtInput, ExecTimeTelemetryData exec
393393
HttpUtil.executeRequest(
394394
httpRequest,
395395
stmtInput.networkTimeoutInMillis / 1000,
396-
stmtInput.socketTimeout,
397396
0,
397+
stmtInput.socketTimeout,
398398
stmtInput.maxRetries,
399399
stmtInput.injectSocketTimeout,
400400
stmtInput.canceling,
@@ -636,8 +636,8 @@ protected static String getQueryResult(String getResultPath, StmtInput stmtInput
636636
return HttpUtil.executeRequest(
637637
httpRequest,
638638
stmtInput.networkTimeoutInMillis / 1000,
639-
stmtInput.socketTimeout,
640639
0,
640+
stmtInput.socketTimeout,
641641
stmtInput.maxRetries,
642642
0,
643643
stmtInput.canceling,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ private boolean sendBatch() throws IOException {
365365
: HttpUtil.executeGeneralRequest(
366366
post,
367367
TELEMETRY_HTTP_RETRY_TIMEOUT_IN_SEC,
368-
this.session.getAuthTimeout(),
368+
0,
369369
this.session.getHttpClientSocketTimeout(),
370370
0,
371371
this.session.getHttpClientKey());

0 commit comments

Comments
 (0)