You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ti...@apache.org on 2020/04/06 04:20:16 UTC

[servicecomb-mesher] branch master updated: Fix: dubbo协议不支持同时作为消费端和服务端 (#112)

This is an automated email from the ASF dual-hosted git repository.

tianxiaoliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-mesher.git


The following commit(s) were added to refs/heads/master by this push:
     new 4d4e364  Fix: dubbo协议不支持同时作为消费端和服务端 (#112)
4d4e364 is described below

commit 4d4e364046871e8077dd8069e5190ac49e3107a2
Author: t-xinlin <t_...@sina.com>
AuthorDate: Mon Apr 6 12:20:08 2020 +0800

    Fix: dubbo协议不支持同时作为消费端和服务端 (#112)
    
    Co-authored-by: “t_xinlin@sina.com <Happy100>
---
 proxy/protocol/dubbo/proxy/dubbo_proxy_ouput.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxy/protocol/dubbo/proxy/dubbo_proxy_ouput.go b/proxy/protocol/dubbo/proxy/dubbo_proxy_ouput.go
index b6a8579..fcd1b61 100755
--- a/proxy/protocol/dubbo/proxy/dubbo_proxy_ouput.go
+++ b/proxy/protocol/dubbo/proxy/dubbo_proxy_ouput.go
@@ -216,7 +216,7 @@ func Handle(ctx *dubbo.InvokeContext) error {
 	if inv.Protocol == "dubbo" {
 		//发送请求
 		//value := ctx.Req.GetAttachment(ProxyTag, "")
-		if !IsProvider { //come from proxyedDubboSvc
+		if !IsProvider || inv.MicroServiceName != runtime.ServiceName { //come from proxyedDubboSvc
 			ctx.Req.SetAttachment(common.HeaderSourceName, runtime.ServiceName)
 			ctx.Req.SetAttachment(ProxyTag, "true")