From 02f90180dfcd238aa8b3af8ad8cdfdc9e1f28629 Mon Sep 17 00:00:00 2001 From: carbotaniuman <41451839+carbotaniuman@users.noreply.github.com> Date: Wed, 1 Jul 2020 13:48:32 -0500 Subject: [PATCH] Debug fixes --- build.gradle | 2 +- gradle.properties | 2 +- src/main/kotlin/mdnet/base/server/ImageServer.kt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index bb2357b..4d72fb2 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ dependencies { implementation group: "org.http4k", name: "http4k-server-netty", version: "$http_4k_version" runtimeOnly group:"io.netty", name: "netty-tcnative-boringssl-static", version: "2.0.30.Final" - implementation group:"ch.qos.logback", name: "logback-classic", version: "1.3.0-alpha5" + implementation group:"ch.qos.logback", name: "logback-classic", version: "1.3.0-alpha4" implementation group: "org.jetbrains.exposed", name: "exposed-core", version: "$exposed_version" implementation group: "org.jetbrains.exposed", name: "exposed-dao", version: "$exposed_version" diff --git a/gradle.properties b/gradle.properties index c89fbf4..735e665 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -http_4k_version=3.250.0 +http_4k_version=3.251.0 exposed_version=0.24.1 \ No newline at end of file diff --git a/src/main/kotlin/mdnet/base/server/ImageServer.kt b/src/main/kotlin/mdnet/base/server/ImageServer.kt index 17adbd5..e59b87a 100644 --- a/src/main/kotlin/mdnet/base/server/ImageServer.kt +++ b/src/main/kotlin/mdnet/base/server/ImageServer.kt @@ -62,6 +62,7 @@ class ImageServer(private val cache: DiskLruCache, private val statistics: Atomi } private val executor = Executors.newCachedThreadPool() private val client = ApacheClient(responseBodyMode = BodyMode.Stream, client = HttpClients.custom() + .disableConnectionState() .setDefaultRequestConfig( RequestConfig.custom() .setCookieSpec(CookieSpecs.IGNORE_COOKIES)