// Initial state, never instantiated externally
ConnectingClientConnection(final ClientActorContext context, final Long cookie) {
- super(context, cookie, new TransmitQueue.Halted(TARGET_QUEUE_DEPTH));
+ super(context, cookie, TARGET_QUEUE_DEPTH);
}
@Override
return Optional.empty();
}
+ @Override
+ long backendSilentTicks(final long now) {
+ // We are still connecting and do not want the timer to attempt a reconnect
+ return 0;
+ }
+
@Override
ClientActorBehavior<T> lockedReconnect(final ClientActorBehavior<T> current, final RequestException cause) {
throw new UnsupportedOperationException("Attempted to reconnect a connecting connection", cause);