terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector >'
what(): set_option: Bad file descriptor
Aborted (core dumped)
Am I misreading the documentation? It seems the only way to initialize this option is to store the socket pointer somewhere and do this in the connect callback (which works, tested).
Websocketpp Version: Current development branch, head. When using the websocketpp::config::asio_tls_client and handle_socket_init with something like:
void T::handle_socket_init(Connection, boost::asio::ssl::stream& socket) {
boost::asio::ip::tcp::no_delay n(true);
socket.lowest_layer().set_option(n);
}
This gives:
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector >'
what(): set_option: Bad file descriptor
Aborted (core dumped)
Am I misreading the documentation? It seems the only way to initialize this option is to store the socket pointer somewhere and do this in the connect callback (which works, tested).