Richard Hodges
Richard Hodges
`timeout::suggested(client)` will instruct your client to not initiate pings. However it will respond to them: ``` static timeout suggested(role_type role) noexcept { timeout opt{}; switch(role) { case role_type::client: opt.handshake_timeout =...
Hi @treyweaver, were you able to make progress or still stuck?
You are not using the buffer sequence returned by the dynamic buffer's data() method correctly. Here is an example of how it works: ``` #include #include #include int main() {...
on_read is a completion handler. It will be called exactly once when the http read composed operation has completed, whether successfully or because of an error. Multiple async operations may...
There is no support for automatic pooling in beast, but I did a demo of it in one of my cpp alliance blogs. Whether the server honours your keepalive request...
No, it’s a feature of the way that TCP works that you will only actually know if the connection is still up when you next try to use it. I’ll...
https://cppalliance.org/richard/2021/01/01/RichardsNewYearUpdate.html
Yes, if you go through the clean shutdown (and the packets actually arrive) then each peer's network layer is aware that the connection is down. However the user only gets...
You still only know if the network card received a FIN the next time you want to use the socket. There’s no OS level callback to inform you. Even if...
Using mutexes with async io is almost always an error. Have you had a look at asio strands? https://www.boost.org/doc/libs/1_74_0/doc/html/boost_asio/reference/strand.html