From 9e86a585687788ff1020610a24b0133788664ebe Mon Sep 17 00:00:00 2001 From: Hannam Rhee Date: Tue, 1 Aug 2023 15:28:23 +0900 Subject: [PATCH] address comment by @ikhoon --- .../linecorp/armeria/client/AbstractDnsResolverBuilder.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/main/java/com/linecorp/armeria/client/AbstractDnsResolverBuilder.java b/core/src/main/java/com/linecorp/armeria/client/AbstractDnsResolverBuilder.java index f9ea28415c2b..679a7ea096c6 100644 --- a/core/src/main/java/com/linecorp/armeria/client/AbstractDnsResolverBuilder.java +++ b/core/src/main/java/com/linecorp/armeria/client/AbstractDnsResolverBuilder.java @@ -527,8 +527,7 @@ protected final Consumer buildConfigurator(EventLoopGrou builder.queryTimeoutMillis(queryTimeoutMillisForEachAttempt); } else { if (queryTimeoutMillis == 0 || queryTimeoutMillis == Long.MAX_VALUE) { - // Use 0 to disable the timeout once https://github.com/netty/netty/pull/13505 is merged. - builder.queryTimeoutMillis(3600000); // 1 hour + builder.queryTimeoutMillis(0); } else { builder.queryTimeoutMillis(queryTimeoutMillis); }