cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

invoke_nativehandle_options called with invalid socket handle

Open ce-bu opened this issue 4 years ago • 0 comments

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

ce-bu avatar Nov 04 '21 05:11 ce-bu