We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6347c4c commit 5e0d265Copy full SHA for 5e0d265
http-core/src/main/scala/org/apache/pekko/http/impl/engine/server/HttpServerBluePrint.scala
@@ -721,10 +721,11 @@ private[http] object HttpServerBluePrint {
721
})
722
723
private var activeTimers = 0
724
- private val timeout = {
725
- import scala.jdk.DurationConverters._
726
- materializer.system.settings.config.getDuration(
727
- "pekko.stream.materializer.stream-ref.subscription-timeout").toScala
+ private val timeout: FiniteDuration = {
+ inheritedAttributes.get[ActorAttributes.StreamSubscriptionTimeout] match {
+ case Some(attr) => attr.timeout
+ case None => 5.minutes // should not happen
728
+ }
729
}
730
private def addTimeout(s: SubscriptionTimeout): Unit = {
731
if (activeTimers == 0) setKeepGoing(true)
0 commit comments