Hi, 2013/10/17 okay_awright <[email protected]>: > Hello everyone, I have a simple question which is apparently difficult > to answer. > > If output.icecast fails, then Liquidsoap also shuts down, plain and > simple; how can I prevent that from happening? > > This behaviour is indeed described here > http://savonet.sourceforge.net/doc-svn/on2_part1.html : "Notice that > liquidsoap only attempts once to reconnect, then fails and shuts down. > For another behavior that tolerates more persistent failures, set > restart=true." > > I'd really like Liquidsoap not to exit in those situtations, but I also > don't want it to endlessly retry to connect. I can already make it try > not to automatically reconnect by overriding the default "onError" event > and even destroy and clean up its associated source, but then I am stuck > in trying to prevent Liquidsoap not to shut down when it cannot > communicate with the media server anymore. I have a complex script that > can take care of connection losses and try another server to communicate > with when it happens. I can use a phony output.dummy(blank()) at script > launch time to fake Liquidsoap in believing that something is playing > all the time (or even use the "init.force_start" directive), waiting to > open a new output.icecast connection to another server with > add_timeout() and a fresh source. > > Is it possible? Can I do it using the Liquidsoap 1.1.1 script language? > What's the reason behind such a default behaviour (i.e. no control over > automatic shutdowns)?
It is not possible at the moment. When an error occurs, either on_error returns a strictly positive number and connection is attempted again or an exception is raised. While your use case makes sense, it is also quite advanced. I will try to think of a way to allow this without making the operator even more complex.. Romain ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
