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 289beac commit ca82041Copy full SHA for ca82041
http-core/src/main/scala/org/apache/pekko/http/impl/engine/server/HttpServerBluePrint.scala
@@ -714,10 +714,11 @@ private[http] object HttpServerBluePrint {
714
})
715
716
private var activeTimers = 0
717
- private val timeout = {
718
- import scala.jdk.DurationConverters._
719
- materializer.system.settings.config.getDuration(
720
- "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
721
+ }
722
}
723
private def addTimeout(s: SubscriptionTimeout): Unit = {
724
if (activeTimers == 0) setKeepGoing(true)
0 commit comments