Skip to content

Commit

Permalink
Allow ResendRequest to be sent through matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
denis.plotnikov committed Dec 13, 2024
1 parent 36712f7 commit 92227f2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/com/exactpro/th2/FixHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ public void sendResendRequest(int beginSeqNo, int endSeqNo, boolean isPossDup) {
channel.send(Unpooled.wrappedBuffer(resendRequest.toString().getBytes(StandardCharsets.UTF_8)),
strategy.getState().enrichProperties(),
null,
SendMode.HANDLE_AND_MANGLE)
SendMode.MANGLE)
.thenAcceptAsync(x -> strategy.getState().addMessageID(x), executorService);
resetHeartbeatTask();

Expand All @@ -878,7 +878,7 @@ void sendResendRequest(int beginSeqNo) { //do private
channel.send(Unpooled.wrappedBuffer(resendRequest.toString().getBytes(StandardCharsets.UTF_8)),
strategy.getState().enrichProperties(),
null,
SendMode.HANDLE_AND_MANGLE)
SendMode.MANGLE)
.thenAcceptAsync(x -> strategy.getState().addMessageID(x), executorService);
resetHeartbeatTask();
}
Expand Down Expand Up @@ -1095,7 +1095,9 @@ public void onOutgoingUpdateTag(@NotNull ByteBuf message, @NotNull Map<String, S
FixField msgType = findField(message, MSG_TYPE_TAG, US_ASCII);

if(msgType != null && ADMIN_MESSAGES.contains(msgType.getValue())) {
return;
if(!Objects.equals(msgType.getValue(), MSG_TYPE_RESEND_REQUEST)) {
return;
}
}

if (isEmpty(message)) {
Expand Down

0 comments on commit 92227f2

Please sign in to comment.