Skip to content

Commit bb3bb8e

Browse files
committed
fix timeout timeunit
1 parent b82f35f commit bb3bb8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/api-service/lowcoder-sdk/src/main/java/org/lowcoder/sdk/webclient/WebClientBuildHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ public Builder toWebClientBuilder() {
9595
.responseTimeout(Duration.ofMillis(timeoutMs))
9696
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, timeoutMs.intValue())
9797
.doOnConnected(conn -> conn
98-
.addHandlerLast(new ReadTimeoutHandler(timeoutMs, TimeUnit.SECONDS))
99-
.addHandlerLast(new WriteTimeoutHandler(timeoutMs, TimeUnit.SECONDS)));
98+
.addHandlerLast(new ReadTimeoutHandler(timeoutMs, TimeUnit.MILLISECONDS))
99+
.addHandlerLast(new WriteTimeoutHandler(timeoutMs, TimeUnit.MILLISECONDS)));
100100
}
101101

102102
if (sslConfig != null) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy