Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TH2-5146] Reconnect in case logon was not acked. #69

Open
wants to merge 1 commit into
base: dev-version-1
Choose a base branch
from

Conversation

isengrims
Copy link
Contributor

No description provided.

@@ -169,7 +168,7 @@ public class FixHandler implements AutoCloseable, IHandler {
private final AtomicReference<Future<?>> testRequestTimer = new AtomicReference<>(CompletableFuture.completedFuture(null));

private final SendingTimeoutHandler sendingTimeoutHandler;
private Future<?> reconnectRequestTimer = CompletableFuture.completedFuture(null);
private AtomicReference<Future<?>> reconnectRequestTimer = new AtomicReference<>(CompletableFuture.completedFuture(null));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have you decided to use AtomicReference here? It looks like we could use volatile here instead since we only use set and get here

assertEquals("8=FIXT.1.1\u00019=105\u000135=A\u000134=1\u000149=client\u000156=server\u000150=trader\u000152=2014-12-22T10:15:30Z\u000198=0\u0001108=30\u00011137=9\u0001553=username\u0001554=pass\u000110=203\u0001",
new String(channel.getQueue().get(0).array()));
channel.getQueue().clear();
Thread.sleep(settings.getLogonAckTimeout() + 2000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need such a big delay here? Maybe we could reduce it in the configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants