boost asio, how to cancel a pending operation via timeout or other?
Is there a way to cancel a pending operation (without disconnect) or set a timeout for the boost library functions?

socket.read_some(boost::asio::buffer(pData, maxSize), error_);

Example, I want to read some from the socket, but I want to throw an error if 10 seconds have passed.
boost asio, how to cancel a pending operation via timeout or other?
===

Is there a way to cancel a pending operation (without disconnect) or set a timeout for the boost library functions?

socket.read_some(boost::asio::buffer(pData, maxSize), error_);

Example, I want to read some from the socket, but I want to throw an error if 10 seconds have passed.