From 1b54badd006bc35b605ff40fdb9aefca9556c29f Mon Sep 17 00:00:00 2001 From: vladp Date: Wed, 11 Mar 2026 12:48:54 +0700 Subject: [PATCH] dev add config for nginx --- .../ru/soune/nocopy/service/search/SearchImageService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/ru/soune/nocopy/service/search/SearchImageService.java b/src/main/java/ru/soune/nocopy/service/search/SearchImageService.java index d25a633..5b64553 100644 --- a/src/main/java/ru/soune/nocopy/service/search/SearchImageService.java +++ b/src/main/java/ru/soune/nocopy/service/search/SearchImageService.java @@ -56,8 +56,7 @@ public class SearchImageService { .followRedirects(true) .followSslRedirects(true) .retryOnConnectionFailure(true) - .connectionPool(new ConnectionPool(0, 1, TimeUnit.NANOSECONDS)) - +// .connectionPool(new ConnectionPool(0, 1, TimeUnit.NANOSECONDS)) .build(); this.googleHttpClient = new OkHttpClient.Builder() @@ -68,7 +67,7 @@ public class SearchImageService { .followRedirects(true) .followSslRedirects(true) .retryOnConnectionFailure(true) - .connectionPool(new ConnectionPool(0, 1, TimeUnit.NANOSECONDS)) +// .connectionPool(new ConnectionPool(0, 1, TimeUnit.NANOSECONDS)) .build(); this.objectMapper = new ObjectMapper();