-
Notifications
You must be signed in to change notification settings - Fork 120
Open
Description
Right now, the only timeout in the sdk is the server-side sync timeout. No client-side timeout is specified. This means that, under some network conditions, requests may hang indefinitely.
In particular, this makes a thread running client.listen_forever freeze for me once every few days on a VPS or sometimes when moving between wifi networks on a laptop (makes using the sdk for a long-running chatbot kinda annoying).
Passing a timeout into requests.request() seems to fix it, throwing an exception as desired.