asio
asio copied to clipboard
Is boost::asio::ssl cache the data ?
@new-commer commented on Sep 24, 2019, 1:04 PM UTC:
I'm using boost::asio::ssl in my server , i have a problem . Sometimes it didn't send the data to peer(I checked it by tcpdump) , even though it succeed call boost::asio::async_write. In this case . Client will never receive the data no matter how long it wait . Unless it send another request to server. Then the data it expected arrived with a new data sent by server . Is boost cache the data ? How can i resolve it ?
This issue was moved by chriskohlhoff from boostorg/asio#289.
@vinniefalco commented on Nov 1, 2019, 3:13 PM UTC:
No, boost is not caching the data. Something is wrong with your server. Have you tried building and running the examples to verify that they work?
I have the same problem. I called asio::async_write(ssl_stream, ...)
twice in a function (sync context), only the first one works. But if I call the second one in a timer (async context), both work.