This is an automated email from the ASF dual-hosted git repository.
jonyang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new 8533c169e fix issue2677 (#2689)
8533c169e is described below
commit 8533c169e91e432c384f404f286bca005a2944a2
Author: zeevel <[email protected]>
AuthorDate: Mon Dec 26 16:59:17 2022 +0800
fix issue2677 (#2689)
Co-authored-by: shcdeng <[email protected]>
---
.../runtime/core/protocol/http/processor/UnSubscribeProcessor.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/UnSubscribeProcessor.java
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/UnSubscribeProcessor.java
index 06b54fc13..d428df902 100644
---
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/UnSubscribeProcessor.java
+++
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/UnSubscribeProcessor.java
@@ -68,10 +68,11 @@ public class UnSubscribeProcessor implements
HttpRequestProcessor {
public void processRequest(ChannelHandlerContext ctx,
AsyncContext<HttpCommand> asyncContext)
throws Exception {
HttpCommand responseEventMeshCommand;
+ String localAddress = IPUtils.getLocalAddress();
httpLogger.info("cmd={}|{}|client2eventMesh|from={}|to={}",
RequestCode.get(Integer.valueOf(asyncContext.getRequest().getRequestCode())),
EventMeshConstants.PROTOCOL_HTTP,
- RemotingHelper.parseChannelRemoteAddr(ctx.channel()),
IPUtils.getLocalAddress());
+ RemotingHelper.parseChannelRemoteAddr(ctx.channel()),
localAddress);
UnSubscribeRequestHeader unSubscribeRequestHeader =
(UnSubscribeRequestHeader)
asyncContext.getRequest().getHeader();
UnSubscribeRequestBody unSubscribeRequestBody =
@@ -81,8 +82,7 @@ public class UnSubscribeProcessor implements
HttpRequestProcessor {
UnSubscribeResponseHeader
.buildHeader(Integer.valueOf(asyncContext.getRequest().getRequestCode()),
eventMeshHTTPServer.getEventMeshHttpConfiguration().getEventMeshCluster(),
- IPUtils.getLocalAddress(),
-
eventMeshHTTPServer.getEventMeshHttpConfiguration().getEventMeshEnv(),
+ localAddress,
eventMeshHTTPServer.getEventMeshHttpConfiguration().getEventMeshEnv(),
eventMeshHTTPServer.getEventMeshHttpConfiguration().getEventMeshIDC());
//validate header
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]