8000 bugfix: fix transport exception when multi client connect to same ser… by kifile · Pull Request #47 · apache/dubbo-python · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bugfix: fix transport exception when multi client connect to same ser… #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 24, 2025

Conversation

kifile
Copy link
Contributor
@kifile kifile commented Mar 8, 2025

What is the purpose of the change

The Http2Protocol stream-handler object is set by the `triple/protocol.py' defined when initialized.

When client connect to server, the asyncio will create a new http2protol using the same stream-handler object, and overwrite the _loop property. it results that the previous connections cannnot be resolved as expected.

It could be resolved by redefine the stream-handler in Http2Protocol

Brief changelog

Verifying this change

@cnzakii
Copy link
Member
cnzakii commented Mar 14, 2025

@kifile Thank you very much for your contribution to the Dubbo community. I will conduct a code 8000 review as soon as possible. Before that, please refer to the CI and fix your code style.

2025-03-15_00 03 30

@kifile kifile closed this Mar 17, 2025
@kifile kifile reopened this Mar 17, 2025
@kifile
Copy link
Contributor Author
kifile commented Mar 17, 2025

@cnzakii , the unused imports is removed.

@@ -77,6 +77,7 @@ def export(self, url: URL):
# Create a stream handler
stream_multiplexer = StreamServerMultiplexHandler(listener_factory)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have already passed in the listener_factory, so there is no need to pass in the StreamServerMultiplexHandler, since it is created in Http2Protocol; it should be removed here.

@kifile
Copy link
Contributor Author
kifile commented Mar 22, 2025

ok, I have removed the unused code.

@cnzakii
Copy link
Member
cnzakii commented Mar 22, 2025

@AlbumenJ LGTM

@AlbumenJ AlbumenJ merged commit 462a3f7 into apache:main Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0