Skip to content

Commit

Permalink
go nuts
Browse files Browse the repository at this point in the history
  • Loading branch information
BalduinLandolt committed Jun 17, 2024
1 parent 1ed1506 commit f306b0b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions integration/src/test/resources/test.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
22 changes: 11 additions & 11 deletions webapi/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
#
Expand Down Expand Up @@ -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 <root level="DEBUG"> in logback.xml.
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f306b0b

Please sign in to comment.