Skip to content

Commit

Permalink
More time to get a response on ResendRequest on logout.
Browse files Browse the repository at this point in the history
  • Loading branch information
denis.plotnikov committed Dec 16, 2024
1 parent 6489460 commit 3144927
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/exactpro/th2/FixHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ private Map<String, String> handleLogout(@NotNull ByteBuf message, Map<String, S
context.send(CommonUtil.toEvent("logout for sender - " + settings.getSenderCompID()), null);//make more useful
try {
if(strategy.getSendResendRequestOnLogoutReply()) {
Thread.sleep(1000);
Thread.sleep(3000);
}
disconnect(false);
openChannel();
Expand Down Expand Up @@ -1795,7 +1795,7 @@ private Map<String, String> fakeRetransmissionOutgoingProcessor(ByteBuf message,
return null;
}

channel.send(Unpooled.copiedBuffer(message), metadata, null, SendMode.DIRECT);
channel.send(asExpandable(Unpooled.copiedBuffer(message)), metadata, null, SendMode.DIRECT);

FixField sendingTime = requireNonNull(findField(message, SENDING_TIME_TAG));
strategy.getState().addMissedMessageToCacheIfCondition(msgSeqNum.get(), message.copy(), x -> true);
Expand All @@ -1820,7 +1820,7 @@ private Map<String, String> possDupOutgoingProcessor(ByteBuf message, Map<String
return null;
}

channel.send(Unpooled.copiedBuffer(message), metadata, null, SendMode.DIRECT);
channel.send(asExpandable(Unpooled.copiedBuffer(message)), metadata, null, SendMode.DIRECT);

FixField sendingTime = requireNonNull(findField(message, SENDING_TIME_TAG));

Expand Down

0 comments on commit 3144927

Please sign in to comment.