The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.96k
stars
1.65k
forks
source link
invoke_nativehandle_options called with invalid socket handle #1660
Hello,
I need to set a socket option before the connection is established.
I tried the invoke_nativehandle_options callback but the socket handle is invalid at that time.Is there a way to achieve this currently?
Currently my workaround is to change async_connect in http_client_asio and invoke a callback on http_config (a new one) where I can call socket_set_option() but that would require changing the library. If you think this is useful I can submit a PR
Thanks
Hello, I need to set a socket option before the connection is established. I tried the invoke_nativehandle_options callback but the socket handle is invalid at that time.Is there a way to achieve this currently? Currently my workaround is to change async_connect in http_client_asio and invoke a callback on http_config (a new one) where I can call socket_set_option() but that would require changing the library. If you think this is useful I can submit a PR Thanks