diff --git a/integration/src/test/resources/test.conf b/integration/src/test/resources/test.conf index 8e454f1872..4b78e4dce8 100644 --- a/integration/src/test/resources/test.conf +++ b/integration/src/test/resources/test.conf @@ -18,10 +18,10 @@ akka { } } - http.host-connection-pool.response-entity-subscription-timeout = 10 seconds + http.host-connection-pool.response-entity-subscription-timeout = 1000 seconds # The time period within which the TCP binding process must be completed. - http.server.bind-timeout = 15 seconds + http.server.bind-timeout = 1500 seconds } app { diff --git a/webapi/src/main/resources/application.conf b/webapi/src/main/resources/application.conf index a1a47283b0..32cbc73041 100644 --- a/webapi/src/main/resources/application.conf +++ b/webapi/src/main/resources/application.conf @@ -24,7 +24,7 @@ pekko { # Set to `infinite` to completely disable idle connection timeouts. # # Must be larger then request-timeout - idle-timeout = 120 minutes + idle-timeout = 12000 minutes # Defines the default time period within which the application has to # produce an HttpResponse for any given HttpRequest it received. @@ -38,10 +38,10 @@ pekko { # request individually. # # Must be smaller then idle-timeout - request-timeout = 120 minutes + request-timeout = 12000 minutes # The time period within which the TCP binding process must be completed. - bind-timeout = 5 seconds + bind-timeout = 500 seconds # The maximum number of concurrently accepted connections when using the # `Http().bindAndHandle` methods. @@ -81,11 +81,11 @@ pekko { client { # The time period within which the TCP connecting process must be completed. - connecting-timeout = 479999 ms // 480 s + connecting-timeout = 47999900 ms // 48000 s # The time after which an idle connection will be automatically closed. # Set to `infinite` to completely disable idle timeouts. - idle-timeout = 479999 ms // 480 s + idle-timeout = 47999900 ms // 48000 s parsing { max-chunk-size = 2m @@ -138,7 +138,7 @@ pekko { # The time after which an idle connection pool (without pending requests) # will automatically terminate itself. Set to `infinite` to completely disable idle timeouts. - idle-timeout = 30 s + idle-timeout = 3000 s # Modify to tweak client settings for host connection pools only. # @@ -238,7 +238,7 @@ app { print-extended-config = ${?KNORA_WEBAPI_PRINT_EXTENDED_CONFIG} // default ask timeout. can be same or lower then pekko.http.server.request-timeout. - default-timeout = 120 minutes // a timeout here should never happen + default-timeout = 12000 minutes // a timeout here should never happen // If true, log all messages sent from and received by routes. Since messages are logged at DEBUG level, you will // need to set loglevel = "DEBUG" in the pekko section of this file, and in logback.xml. @@ -305,7 +305,7 @@ app { internal-port = 1024 internal-port = ${?KNORA_WEBAPI_SIPI_INTERNAL_PORT} - timeout = 120 seconds + timeout = 12000 seconds // relevant for the client, i.e. browser external-protocol = "http" @@ -408,13 +408,13 @@ app { host = ${?KNORA_WEBAPI_TRIPLESTORE_HOST} // timeout for triplestore queries. can be same or lower then pekko.http.server.request-timeout. - query-timeout = 20 seconds + query-timeout = 2000 seconds // timeout for triplestore queries for maintenance actions. can be same or lower then pekko.http.server.request-timeout. - maintenance-timeout = 120 seconds + maintenance-timeout = 12000 seconds // timeout for Gravsearch queries. can be same or lower then pekko.http.server.request-timeout. - gravsearch-timeout = 120 seconds + gravsearch-timeout = 12000 seconds // triplestore auto init. initialize triplestore at startup if necessary. auto-init = false diff --git a/webapi/src/main/scala/org/knora/webapi/slice/admin/domain/service/DspIngestClient.scala b/webapi/src/main/scala/org/knora/webapi/slice/admin/domain/service/DspIngestClient.scala index d0e96b609a..99f7c8033d 100644 --- a/webapi/src/main/scala/org/knora/webapi/slice/admin/domain/service/DspIngestClient.scala +++ b/webapi/src/main/scala/org/knora/webapi/slice/admin/domain/service/DspIngestClient.scala @@ -95,7 +95,7 @@ final case class DspIngestClientLive( exportFile = tempDir / "export.zip" request <- authenticatedRequest.map { _.post(uri"${projectsPath(shortcode)}/export") - .readTimeout(30.minutes) + .readTimeout(3000.minutes) .response(asStreamAlways(ZioStreams)(_.run(ZSink.fromFile(exportFile.toFile)))) } response <- ZIO.blocking(request.send(backend = sttpBackend)) diff --git a/webapi/src/main/scala/org/knora/webapi/store/triplestore/impl/TriplestoreServiceLive.scala b/webapi/src/main/scala/org/knora/webapi/store/triplestore/impl/TriplestoreServiceLive.scala index 31357d03f7..a48ece1690 100644 --- a/webapi/src/main/scala/org/knora/webapi/store/triplestore/impl/TriplestoreServiceLive.scala +++ b/webapi/src/main/scala/org/knora/webapi/store/triplestore/impl/TriplestoreServiceLive.scala @@ -514,7 +514,7 @@ object TriplestoreServiceLive { val layer: URLayer[Triplestore & StringFormatter, TriplestoreService] = HttpClientZioBackend .layer( - SttpBackendOptions.connectionTimeout(2.hours), + SttpBackendOptions.connectionTimeout(200.hours), ) .orDie >+> ZLayer.scoped {