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

[backport] feat: support set TOS in curl #2113

Merged
merged 1 commit into from
Feb 27, 2025
Merged

Conversation

Abingcbc
Copy link
Collaborator

No description provided.

@@ -134,6 +149,13 @@ namespace sdk {
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, data_write_callback);
curl_easy_setopt(curl, CURLOPT_HEADERDATA, &(httpMessage.header));
curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, header_write_callback);

static int sDSCP
= INT32_FLAG(sls_request_dscp); // the lifestyle of sDSCP pointer should be longer than local variable
Copy link
Collaborator

Choose a reason for hiding this comment

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

虽然是实现不一样,但是使用方式得保持一致吧,后续得能升级到LoongCollector,这个要重点测试下兼容性

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

使用是一样的,都是配置gflag

@henryzhx8 henryzhx8 added this to the v2.1 milestone Feb 27, 2025
@henryzhx8 henryzhx8 added the feature New feature label Feb 27, 2025
@Abingcbc Abingcbc merged commit 1895948 into alibaba:2.1 Feb 27, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants