From f516f4234efd7f619fd9baf4f2b48b0695e52f0a Mon Sep 17 00:00:00 2001
From: Slava Semushin <slava.semushin@gmail.com>
Date: Fri, 13 Oct 2023 10:55:46 +0700
Subject: [PATCH] chore: increase a number of Jetty threads to fix the
 integration tests

Correction for 08a07ceaad78017e5c45ee7362dd3300f97a5ed5 commit.

Previously, a number of threads was enough only for handling a single client connection. When we
tried to create a series with an image that should be downloaded from the same server, we couldn't
do that as an only worker was busy -- it was waiting when a server downloads an image from itself.

Fix #1633
---
 src/main/resources/application-postgres.properties | 4 ++--
 src/main/resources/application-test.properties     | 4 ++--
 src/main/resources/application-travis.properties   | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/main/resources/application-postgres.properties b/src/main/resources/application-postgres.properties
index 6dff24f56..fbfd112c3 100644
--- a/src/main/resources/application-postgres.properties
+++ b/src/main/resources/application-postgres.properties
@@ -39,8 +39,8 @@ logging.level.org.springframework.web.servlet.mvc.method.annotation.RequestMappi
 app.use-cdn: false
 
 # reduce a number of threads (8 and 200 by default)
-server.jetty.threads.min: 2
-server.jetty.threads.max: 4
+server.jetty.threads.min: 4
+server.jetty.threads.max: 6
 
 # Full list of autoconfiguration classes:
 # https://docs.spring.io/spring-boot/docs/2.3.x/reference/html/appendix-auto-configuration-classes.html
diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties
index 34ce13f49..6bd14377e 100644
--- a/src/main/resources/application-test.properties
+++ b/src/main/resources/application-test.properties
@@ -14,8 +14,8 @@ spring.h2.console.path: /console
 server.max-http-header-size: 4096
 
 # reduce a number of threads (8 and 200 by default)
-server.jetty.threads.min: 2
-server.jetty.threads.max: 4
+server.jetty.threads.min: 4
+server.jetty.threads.max: 6
 
 spring.messages.cache-duration: 1m
 spring.messages.fallback-to-system-locale: false
diff --git a/src/main/resources/application-travis.properties b/src/main/resources/application-travis.properties
index 638841a18..8746936d4 100644
--- a/src/main/resources/application-travis.properties
+++ b/src/main/resources/application-travis.properties
@@ -38,8 +38,8 @@ app.preview.dir: /tmp/preview
 app.use-cdn: false
 
 # reduce a number of threads (8 and 200 by default)
-server.jetty.threads.min: 2
-server.jetty.threads.max: 4
+server.jetty.threads.min: 4
+server.jetty.threads.max: 6
 
 # Full list of autoconfiguration classes:
 # https://docs.spring.io/spring-boot/docs/2.3.x/reference/html/appendix-auto-configuration-classes.html