aws-sdk-cpp icon indicating copy to clipboard operation
aws-sdk-cpp copied to clipboard

How to Specify TCP socket buffer size hints

Open yangsmith opened this issue 2 years ago • 2 comments

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

yangsmith avatar Nov 09 '23 10:11 yangsmith

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.

jmklix avatar Nov 15 '23 00:11 jmklix

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.

yangsmith avatar Nov 15 '23 01:11 yangsmith

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.

jmklix avatar Apr 05 '24 21:04 jmklix

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.

github-actions[bot] avatar Apr 05 '24 21:04 github-actions[bot]