#249: Shutdown
-------------------------+--------------------------------------------------
Reporter: mrpingouin | Owner: toots
Type: Bugs | Status: assigned
Priority: 1 | Milestone: 0.9.0
Component: Liquidsoap | Version:
Resolution: | Keywords:
Mac: 1 | Linux: 1
Netbsd: 1 | Other: 1
Freebsd: 1 |
-------------------------+--------------------------------------------------
Comment (by mrpingouin):
No hurry here, I think the current solution can stay there for a few days,
we have time to discuss and find a simple, elegant solution.
The example that I found is the feeding tasks of queued request sources:
when the source goes to sleep, it asks its task to die, and waits for it.
It is needed to effectively cleanup the queue before going to sleep (and
also avoids having several tasks at the same time if you're waken up
immediately after going to sleep).
We don't need that duppy refuses (silently or not) any task, we just need
to wait. Most threads (including those which have been turned into duppy
tasks) are meant to exit cleanly when their source goes to sleep, or when
liquidsoap shutdowns if they don't depend on a source. This is already
enforced in most places: for example, the server was supposed to shutdown
with liquidsoap (we should check that this wasn't changed when we moved it
as a duppy task). Most tasks and threads belong to sources anyway, and it
is important that sources free all their resources when they go to sleep.
Being strict with threads and tasks on shutdown is a way to spot problems
in that matter.
--
Ticket URL: <http://savonet.rastageeks.org/ticket/249#comment:3>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac