telebot icon indicating copy to clipboard operation
telebot copied to clipboard

request may not timeout on internet-loss

Open qu4cks4lb3r opened this issue 4 years ago • 0 comments

In some situations TeleBot was not handling requests anymore after the internetconnection was lost. In this case.

I think the problem is, that no timeout parameter is passed to the request-post call in TeleBot.request and therefore it get stuck if the connection drops while making that request.

Adding a timeout to the options solved this problem, anyways I'm not sure this is the best way to handle this and if should be a static timeout or be a configurable parameter.

qu4cks4lb3r avatar May 02 '20 08:05 qu4cks4lb3r