reconnecting to streaming servers
Posted: 07 Aug 2005 14:35
Hi
I have a couple of servers, streaming video in http/asf.
I have installed a frontend server with VLM acting as a relay for these streams.
The problem is whenever a backend server goes down, the media is stopped. Eg
new channel1 broadcast enabled
setup channel1 input http://192.168.1.66:9888
setup channel1 output #standard{access=http,mux=asf,url=192.168.1.62:9888/server1/cam1}
control channel1 play
When 192.168.1.66 goes down, I have to issue another "control channel1 play" to reconnect. What I have found is by using the loop option:
setup channel1 loop
The VLM attempts to reconnect to the backend. This is perfect, and works very well. All except that there's no delay between retries. It tries to reconnect every 100msec.
I will be modifying the code to add an input param for loop delay. This will allow reconnects to backend servers with reasonable delays.
Keith
I have a couple of servers, streaming video in http/asf.
I have installed a frontend server with VLM acting as a relay for these streams.
The problem is whenever a backend server goes down, the media is stopped. Eg
new channel1 broadcast enabled
setup channel1 input http://192.168.1.66:9888
setup channel1 output #standard{access=http,mux=asf,url=192.168.1.62:9888/server1/cam1}
control channel1 play
When 192.168.1.66 goes down, I have to issue another "control channel1 play" to reconnect. What I have found is by using the loop option:
setup channel1 loop
The VLM attempts to reconnect to the backend. This is perfect, and works very well. All except that there's no delay between retries. It tries to reconnect every 100msec.
I will be modifying the code to add an input param for loop delay. This will allow reconnects to backend servers with reasonable delays.
Keith