You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'ConnectionManager::stopped_' never go to be 'true' in dubbo_proxy #17863
Title: 'ConnectionManager::stopped_' never go to be 'true' in dubbo_proxy
Description:
I just try to understand how to write a private protocol network filter by reading the codes about the dubbo_proxy, now I'm confused about the variable of 'ConnectionManager::stopped_' which's value always be 'false'.
However, the same variable in thrift_proxy can be set to true at
Yes. This stopped_ make on sense in the dubbo proxy. In the initial implementation of dubbo proxy, there is a lot of designs that refer to thrift proxy. I will try to remove it.
Activity
wbpcode commentedon Aug 26, 2021
Yes. This
stopped_make on sense in the dubbo proxy. In the initial implementation of dubbo proxy, there is a lot of designs that refer to thrift proxy. I will try to remove it.wbpcode commentedon Aug 26, 2021
/assign
FeiYing9 commentedon Aug 26, 2021
Thanks @wbpcode . I have another question now:
the method of Router::onStreamDecoded' implemented here:
envoy/source/extensions/filters/network/dubbo_proxy/router/router_impl.cc
Line 26 in 4b3f4a5
and it's assigned here and then be applied:
envoy/source/extensions/filters/network/dubbo_proxy/active_message.cc
Line 249 in 4b3f4a5
That works fine in handling the requst traffic of dubbo.
Then, I find the method of 'EncoderFilter::onStreamDecoded' is be assigned here and then be applied:
envoy/source/extensions/filters/network/dubbo_proxy/active_message.cc
Line 78 in 4b3f4a5
however, I cannot find where it's implemented? How can it works?
It's really hard to understand the logic
wbpcode commentedon Aug 26, 2021
Here created encoder filter action:
envoy/source/extensions/filters/network/dubbo_proxy/active_message.cc
Lines 76 to 79 in 4b3f4a5
And here try to run the filters by the action:
envoy/source/extensions/filters/network/dubbo_proxy/active_message.cc
Lines 326 to 346 in 4b3f4a5
If there is no any encoder filter, then the action will never run and do nothing.
So the answer is no where implement it. It just do nothing.
wbpcode commentedon Aug 26, 2021
Yes, its logic is indeed very complicated. Although we can simplify it later, the priority of this matter is not high.
FeiYing9 commentedon Aug 26, 2021
Thanks a lot.