Connection retries to shutdown node, see #3326
* In EC2 connection time out is around 1 minute. A few messages were sent after quarantining and these caused endless restarts, and connect attempts with 1 minute interval. * This change makes sure that the endpoint is stopped after the first failed connection attempt. * Changed default settings for netty connection-timeout, and matching retry window to allow for 3 restarts
This commit is contained in:
parent
d0ed7385b2
commit
3d1c0a7325
4 changed files with 16 additions and 7 deletions
|
|
@ -454,7 +454,13 @@ private[remote] class EndpointWriter(
|
|||
case Event(Status.Failure(e: InvalidAssociationException), _) ⇒
|
||||
publishAndThrow(new InvalidAssociation(localAddress, remoteAddress, e))
|
||||
case Event(Status.Failure(e), _) ⇒
|
||||
publishAndThrow(new EndpointAssociationException(s"Association failed with [$remoteAddress]", e))
|
||||
refuseUid match {
|
||||
case Some(uid) ⇒
|
||||
// don't try again when endpoint is quarantined
|
||||
publishAndThrow(new QuarantinedUidException(uid, remoteAddress))
|
||||
case None ⇒
|
||||
publishAndThrow(new EndpointAssociationException(s"Association failed with [$remoteAddress]", e))
|
||||
}
|
||||
case Event(inboundHandle: AkkaProtocolHandle, _) ⇒
|
||||
refuseUid match {
|
||||
case Some(uid) if inboundHandle.handshakeInfo.uid == uid ⇒
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue