You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Api.get_next_event() and Api.wait_for_text_event() can be stuck forever in case of unexpected behaviors from the device. There should be atimeout parameter to prevent that. I tried hard to implement a timeout feature on requests.Response.raw.readline() with:
threading.Timer which close the socket after the specified amount of time has passed, but it doesn't make requests.Response.raw.readline() fail
select.poll on the request socket and it doesn't work either
(As a side node, I think HTTP requests should also timeout after some time, but it can be done easily with requests.)
The text was updated successfully, but these errors were encountered:
Api.get_next_event()
andApi.wait_for_text_event()
can be stuck forever in case of unexpected behaviors from the device. There should be atimeout
parameter to prevent that. I tried hard to implement a timeout feature onrequests.Response.raw.readline()
with:threading.Timer
which close the socket after the specified amount of time has passed, but it doesn't makerequests.Response.raw.readline()
failselect.poll
on the request socket and it doesn't work either(As a side node, I think HTTP requests should also timeout after some time, but it can be done easily with
requests
.)The text was updated successfully, but these errors were encountered: