#18151: Fail Futures returned by TCP when connection fails

This commit is contained in:
Ryan Bair 2015-08-09 16:25:35 -04:00
parent 3573d120de
commit c6ce2dbb3d

View file

@ -335,4 +335,10 @@ private[akka] class OutboundTcpStreamActor(processorPromise: Promise[Processor[B
processorPromise.failure(ex)
fail(ex)
}
override def fail(e: Throwable): Unit = {
processorPromise.tryFailure(e)
localAddressPromise.tryFailure(e)
super.fail(e)
}
}