Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

Conversation

@lucdew
Copy link

@lucdew lucdew commented Apr 14, 2018

Add an option named socketTimeout for polling to set a socket read timeout for http requests to telegram. The default value is set to 30 seconds.
Otherwise there is no socket read timeout and connection can hang indefinitely on some systems.

@lucdew
Copy link
Author

lucdew commented Apr 16, 2018

Well I just realized looking at the telegram API that the getUpdates is a long polling request, so the default value is not good and should probably be 0 ( no timeout). However I still think that it is more reliable to have the connection timeout. Also when the socket timeout value is set, it should be checked to be greater than the getUpdates timeout.

mrummuka pushed a commit to mrummuka/telebot that referenced this pull request Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant