tgbot-cpp icon indicating copy to clipboard operation
tgbot-cpp copied to clipboard

BoostHttpOnlySslClient: no timeouts

Open ymuv opened this issue 8 years ago • 2 comments

If internet connection fail, bot will stop in (write(socket, buffer(requestText.c_str(), requestText.length())); (or read, I did't check yet)). Deadline timer can be used in this case (example http://www.boost.org/doc/libs/1_45_0/doc/html/boost_asio/example/timeouts/async_tcp_client.cpp ).

ymuv avatar Feb 16 '17 23:02 ymuv

So the issue won't be resolved, will it?

ivanovmp avatar Feb 14 '21 22:02 ivanovmp

i have this solved using async_read_some() and ioservice.run_one_until(timepoint)

https://github.com/reo7sp/tgbot-cpp/issues/160

rwmoekoe avatar Mar 10 '21 19:03 rwmoekoe