Skip to content

Commit ea54110

Browse files
dragonpooludomikula
authored andcommitted
fix timeout timeunit
1 parent 40744e0 commit ea54110

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)