tdlight-team/tdlight-telegram-bot-api

Handle lost connection to telegram servers gracefully

luckydonald opened this issue · 6 comments

Currently, if telegram isn't working, requests are simply left open, stalling forever.

That's not great as that means basically DDoS potential.

To Reproduce:

  1. Lauch bot api
  2. Disconnect Wifi or whatever
  3. Send a request to the Bot API.
  4. ????
  5. Boom

So I think it should just return an error right away.
Just like the Internal Server Error: restart one.

penn5 commented

@luckydonald I don't get it

It should work with the next update, I'm closing this issue. Reopen it if the problem exists also in the next update.

Any concrete commit fixing this?

Is still not working with the current release?

No idea, didn't test yet.
I was rather curious by what it could be fixed now.

Like, did a upstream merge change that, or did one of you lovely people fix it?