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: support set TOS in curl #2106

Merged
merged 7 commits into from
Feb 21, 2025
Merged

feat: support set TOS in curl #2106

merged 7 commits into from
Feb 21, 2025

Conversation

Abingcbc
Copy link
Collaborator

./loongcollector -curl_ip_dscp=10

抓包后的结果,DSCP为10时,TOS应当为0x28
image

image

Copy link
Collaborator

@henryzhx8 henryzhx8 left a comment

Choose a reason for hiding this comment

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

解耦,新增一个sock结构体,把tos作为其中一个变量,然后在httprequest类里面增加一个sock成员。gflag调整到sock结构体的构造函数默认值

@Abingcbc Abingcbc merged commit 256b281 into alibaba:main Feb 21, 2025
15 checks passed
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