Re: [Simpleweb-Support] How to shutdown?
Brought to you by:
niallg
From: Niall G. <gal...@ya...> - 2007-03-22 09:43:00
|
Hi,=0A=0AI have written a signalling framework which will be used in Simple= so send signals to all threads and processes within the server when someth= ing happens. For instance a shutdown signal will be distributed to all thre= ads to allow them to shutdown cleanly. When I get the time to finally relea= se the next version this will be included it is located at:=0A=0Ahttps://sv= n.sourceforge.net/svnroot/simpleweb/branches/3.2/src/simple/signal/=0A =0AN= iall Gallagher=0A=0A----- Original Message ----=0AFrom: Stefan H=FCbner <st= hu...@go...>=0ATo: Simple support and user issues <simpleweb-sup= po...@li...>=0ASent: Wednesday, March 21, 2007 7:54:23 PM=0A= Subject: Re: [Simpleweb-Support] How to shutdown?=0A=0AHi Oscar,=0A=0A2007/= 3/21, Oscar Perez <os...@te...>:=0A> Hi,=0A> I don't have an ans= wer to you, but I faced the same problem just a week=0A> ago and what I did= was to track all the started threads to kill them at=0A> shutdown time. I'= ll not post my code here now, but I'll advise you to=0A> not do as me, as I= lost a lot of hours tracking threads and debugging...=0A=0AThank you for t= hat :-)=0A=0A> I guess LoaderEngine was not designed to have a clean shutdo= wn?=0A>=0AWhat I figured out, when I had a second look into Simple's code, = is=0Athat there is at least the opportunity to close() the ServerSocket the= =0Aconnection is connect()ed with. After close() Simple won't serve any=0Ar= equest sent to the port the socket was serving.=0A=0ABut getting rid of all= those threads seems like a mission impossible,=0Agiven how much Simple rel= ies on Singletons. One hardly gets the chance=0Ato get hold of all those hi= dden instances, I guess.=0A=0ACheers,=0AStefan=0A>=0A> En/na Stefan H=FCbne= r ha escrit:=0A> > Hi,=0A> >=0A> > Excuse me, if this has been asked before= , but how do I shutdown a=0A> > LoaderEngine? Is there a way to do so?=0A> = >=0A> > Cheers,=0A> > Stefan=0A> >=0A> > ----------------------------------= ---------------------------------------=0A> > Take Surveys. Earn Cash. Infl= uence the Future of IT=0A> > Join SourceForge.net's Techsay panel and you'l= l get the chance to share your=0A> > opinions on IT & business topics throu= gh brief surveys-and earn cash=0A> > http://www.techsay.com/default.php?pag= e=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A> > ___________________________= ____________________=0A> > Simpleweb-Support mailing list=0A> > Simpleweb-S= up...@li...=0A> > https://lists.sourceforge.net/lists/list= info/simpleweb-support=0A> >=0A> >=0A> >=0A>=0A>=0A> ----------------------= ---------------------------------------------------=0A> Take Surveys. Earn = Cash. Influence the Future of IT=0A> Join SourceForge.net's Techsay panel a= nd you'll get the chance to share your=0A> opinions on IT & business topics= through brief surveys-and earn cash=0A> http://www.techsay.com/default.php= ?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A> _________________________= ______________________=0A> Simpleweb-Support mailing list=0A> Simpleweb-Sup= po...@li...=0A> https://lists.sourceforge.net/lists/listinfo= /simpleweb-support=0A>=0A--------------------------------------------------= -----------------------=0ATake Surveys. Earn Cash. Influence the Future of = IT=0AJoin SourceForge.net's Techsay panel and you'll get the chance to shar= e your=0Aopinions on IT & business topics through brief surveys-and earn ca= sh=0Ahttp://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV=0A_______________________________________________=0ASimpleweb-Sup= port mailing list=0AS...@li...=0Ahttps://lists= .sourceforge.net/lists/listinfo/simpleweb-support=0A=0A=0A=0A=0A=0A =0A____= ___________________________________________________________________________= _____=0AWe won't tell. Get more on shows you hate to love =0A(and love to h= ate): Yahoo! TV's Guilty Pleasures list.=0Ahttp://tv.yahoo.com/collections/= 265 |