Skip to content

Commit

Permalink
Correct disable for outOfOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
denis.plotnikov committed Dec 13, 2024
1 parent 92227f2 commit 6489460
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/com/exactpro/th2/FixHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -1861,10 +1861,6 @@ private Map<String, String> missOutgoingMessages(ByteBuf message, Map<String, St
&& Duration.between(strategy.getStartTime(), Instant.now()).compareTo(strategy.getConfig().getDuration()) > 0 ) {
strategy.disableAllowMessagesBeforeRetransmissionFinishes("after " + strategy.getConfig().getDuration() + " strategy duration");
}
if(strategy.getOutOfOrder()
&& Duration.between(strategy.getStartTime(), Instant.now()).compareTo(strategy.getConfig().getDuration()) > 0 ) {
strategy.disableOutOfOrder("after " + strategy.getConfig().getDuration() + " strategy duration");
}

return null;
}
Expand Down Expand Up @@ -2633,6 +2629,11 @@ private void recoveryFromState(Integer beginSeqNo, Integer endSeqNo) {

LOGGER.info("Making recovery from state: {} - {}.", beginSeqNo, endSeqNo);

if(strategy.getOutOfOrder()
&& Duration.between(strategy.getStartTime(), Instant.now()).compareTo(strategy.getConfig().getDuration()) > 0 ) {
strategy.disableOutOfOrder("after " + strategy.getConfig().getDuration() + " strategy duration");
}

boolean skip = strategy.getOutOfOrder();
ByteBuf skipped = null;

Expand Down

0 comments on commit 6489460

Please sign in to comment.