From df82a8e5c0826e38cac1093909db7c25178fbedb Mon Sep 17 00:00:00 2001 From: DedunuKarunarathne <46235093+DedunuKarunarathne@users.noreply.github.com> Date: Thu, 19 Dec 2024 11:05:20 +0530 Subject: [PATCH] Fix NO_KEEPALIVE property not working issue with call blocking = true Fix NO_KEEPALIVE property not working issue with call blocking = true. Fixes:wso2/product-micro-integrator#3619 --- .../synapse/message/senders/blocking/BlockingMsgSender.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/core/src/main/java/org/apache/synapse/message/senders/blocking/BlockingMsgSender.java b/modules/core/src/main/java/org/apache/synapse/message/senders/blocking/BlockingMsgSender.java index 82e5df42d0..8249a9896b 100644 --- a/modules/core/src/main/java/org/apache/synapse/message/senders/blocking/BlockingMsgSender.java +++ b/modules/core/src/main/java/org/apache/synapse/message/senders/blocking/BlockingMsgSender.java @@ -348,6 +348,8 @@ public void send(EndpointDefinition endpointDefinition, MessageContext synapseIn axisInMsgCtx.getProperty(SynapseConstants.NO_KEEPALIVE)); axisOutMsgCtx.setProperty(SynapseConstants.NO_DEFAULT_CONTENT_TYPE, axisInMsgCtx.getProperty(SynapseConstants.NO_DEFAULT_CONTENT_TYPE)); + axisOutMsgCtx.setProperty(SynapseConstants.NO_KEEPALIVE, + axisInMsgCtx.getProperty(SynapseConstants.NO_KEEPALIVE)); // Fill MessageContext BlockingMsgSenderUtils.fillMessageContext(endpointDefinition, axisOutMsgCtx, synapseInMsgCtx); if (JsonUtil.hasAJsonPayload(axisInMsgCtx)) {