tgbot-cpp
tgbot-cpp copied to clipboard
BoostHttpOnlySslClient: no timeouts
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 ).
So the issue won't be resolved, will it?
i have this solved using async_read_some() and ioservice.run_one_until(timepoint)
https://github.com/reo7sp/tgbot-cpp/issues/160