#18151: Fail Futures returned by TCP when connection fails
This commit is contained in:
parent
3573d120de
commit
c6ce2dbb3d
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue