refactor SslTlsActor and stop it reliably

- this also discovered two omissions in the Transfer infrastructure:

  - inputsAvailableFor should be completed when the input is cancelled
  - demandAvailableFor should be completed when the output is errored

also switch off tracing for SslTls—we don’t want this on in production
This commit is contained in:
Roland Kuhn 2015-04-24 09:18:09 +02:00
parent 0ac7900e9e
commit 4132e026ec
5 changed files with 125 additions and 83 deletions

View file

@ -92,7 +92,7 @@ private[akka] case class ActorFlowMaterializerImpl(
case tls: TlsModule
val es = effectiveSettings(effectiveAttributes)
val props = SslTlsCipherActor.props(es, tls.sslContext, tls.firstSession, tracing = true, tls.role, tls.closing)
val props = SslTlsCipherActor.props(es, tls.sslContext, tls.firstSession, tracing = false, tls.role, tls.closing)
val impl = actorOf(props, stageName(effectiveAttributes), es.dispatcher)
def factory(id: Int) = new ActorPublisher[Any](impl) {
override val wakeUpMsg = FanOut.SubstreamSubscribePending(id)