Skip to content
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

feat: Improve RPC communication based on HTTP/2 #403

Open
wants to merge 3 commits into
base: dubbo3
Choose a base branch
from

Conversation

SDUWYS
Copy link

@SDUWYS SDUWYS commented Aug 24, 2024

fix: #362
The initial version of the HTTP/2 code can be improved gradually.

@SDUWYS
Copy link
Author

SDUWYS commented Aug 24, 2024

@jianyi-gronk CR


const transport = createDubboTransport({
baseUrl: "http://localhost:8080",
httpVersion: "1.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

“1.1” 这里是不是写错了诶


## <span id="accessService">访问服务</span>

最简单方式是使用 HTTP/1.1 POST 请求访问服务,参数则作以标准 JSON 格式作为 HTTP 负载传递。如下是使用 cURL 命令的访问示例:
Copy link
Contributor

Choose a reason for hiding this comment

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

还有这里 “1.1”

@jianyi-gronk
Copy link
Contributor

这个是怎么自测的诶,有写单元测试吗

@SDUWYS
Copy link
Author

SDUWYS commented Aug 26, 2024

这个是怎么自测的诶,有写单元测试吗

这个自测单元没写,example例子实现了一下

@jianyi-gronk
Copy link
Contributor

感觉单测还是有必要的吧,比如没带 serviceVersion 和 serviceGroup,或者只带了其中一个参数,或者请求失败场景啥的

@SDUWYS
Copy link
Author

SDUWYS commented Aug 26, 2024

感觉单测还是有必要的吧,比如没带 serviceVersion 和 serviceGroup,或者只带了其中一个参数,或者请求失败场景啥的

OK,那我找个时间把这个单测整一下,我看看怎么去单测一下。

Copy link

sonarcloud bot commented Sep 23, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
4.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

Copy link
Contributor

Choose a reason for hiding this comment

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

Consider whether you need to add multiple test cases, such as when serviceVersion is missing, serviceGroup is missing, or both are missing.

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.

Improve RPC communication based on HTTP/2
2 participants