-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socket hangs on "<station>.status" if request for URL gets no response from http.input source #367
Comments
Hi, Is the |
source.status is the built-in input.http telnet command. an example script: `set("log.stdout", true) set("server.telnet", true) radio = input.http(id="station", "http://127.0.0.1:8000/radio") $ telnet localhost 1234 station.status station.url http://not-responding-url:8000 station.url station.status |
I have the same problem in version 1.3.3. |
Thanks for the report and insisting. I have just pushed a fix that will go with the next |
We are using telnet command
station.url [url]
to dynamically set an HTTP input URL.Afterwards we use
station.status
to check if the url is polling, matchs to the URL set before, and further checks.In case a HTTP request to the URL gets no response from audio stream server, the status command in telnet interface will hang and not return. This will result the client in hanging, too.
A workaround at client is to read from liquidsoap telnet interface using a timeout. From user view it would be better if the status command returns after some time, if connection status cannot be received.
The text was updated successfully, but these errors were encountered: