aws / aws-sdk-cpp

AWS SDK for C++
Apache License 2.0
1.98k stars 1.06k forks source link

How to Specify TCP socket buffer size hints #2740

Closed yangsmith closed 7 months ago

yangsmith commented 1 year ago

Describe the issue

I read the documentation (https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/client-config.html) and it says that I can specify the TCP socket buffer size hint, but I didn't find the related function in the SDK code

Links

https://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/client-config.html

jmklix commented 1 year ago

I think that might be incorrectly documented/outdated. Looking into getting that corrected

Why are you trying to change the buffer size? I would like to understand your use case so I can find the best solution for you.

yangsmith commented 1 year ago

1, I look at the java sdk documentation(https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/ClientConfiguration.html) there are related functions (setSocketBufferSizeHints),But the test program is written in c++.
2、I don't want to rely on Linux to automatically adjust the TCP BUFFER SZIE, I want to manually adjust the buffer size without changing the system environment to test the program performance.

jmklix commented 7 months ago

Thanks for this suggestion, but this is not currently supported in the crt dependency. It's also not something that we plan on adding anytime in the near future, so I'm closing this issue.

github-actions[bot] commented 7 months ago

This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.