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
Running this example with luvit it will run forever.
This is problematic because I was running a daemon using coro-http and it got stuck forever when my network was down, even after the network became alive again.
The text was updated successfully, but these errors were encountered:
edubart
changed the title
coro-http timeout
coro-http has no timeout
Jun 15, 2017
I hit the same problem and I made some changes to my copy of the the core coro-wrapper and coro-channel libraries to provide support for optional read timeouts. They would need to be wired through to http library, but shouldn't be too difficult. Just look for :read in there.
Coro http has no timeout option, if you do a HTTP request to an unresponsive address the coroutine it will never resume.
Test case:
Running this example with luvit it will run forever.
This is problematic because I was running a daemon using coro-http and it got stuck forever when my network was down, even after the network became alive again.
The text was updated successfully, but these errors were encountered: