<html><body>On 30 Nov, 08:00 pm, ncesar@lunix.com.ar wrote:<br />&gt;my apologies for the delayed answer, i've been very busy latelly.<br /><br />No problem, aren't we all.<br /><br />&gt;El Martes, 28 de Noviembre de 2006 06:07, glyph@divmod.com escribió:<br />&gt;&gt; Should the webserver stop simply because your protocol is not working?<br />&gt;<br />&gt;Well, yes I agree with you: not a webserver. So, I'll shortly describe my<br />&gt;application.<br /><br />My point is that you are artificially combining your application with your infrastructure. &#160;The reactor is always potentially in use by multiple applications, so it is not the thing that should be stopped.<br /><br />&gt;I have multiple LSTP (Linux Terminal Server Project) servers. All servers are<br />&gt;(almost) the same, and any of them can serve any client. There are arround<br />&gt;8-12 servers and 150+ clients. I'm developing a twisted application that<br />&gt;balances clients requests (by filtering DHCP discover/requests packets. (I<br />&gt;attached an image, my application is called multiltsp). I'm using ip_queue<br />&gt;for this.<br /><br />OK. &#160;So somewhere, there should be a MultiLTSPService which is the thing that gets stopped by these exceptions, I think.<br /><br />&gt;There is a LDAP somewhere that has all client MACs that are in the group (eg.<br />&gt;the 150 clients) and from time to time, multiltsp re-reads this list. (I'm<br />&gt;simplifying much of these details). I'll call this list "ALL-MACS"...<br />&gt;... all multiltsp daemons MUST have the ALL-MACS list identical, in case there<br />&gt;is a out of sync[1] problem the (incorrect) server must quit and the others<br />&gt;must handle the clients.<br /><br />Shouldn't it just get informed that it is in an invalid state, and re-start itself, rather than shutting down entirely? &#160;I understand that this is a "panic" state that should "never happen", but you can flush that one bit of state without tanking the entire process.<br /><br />&gt;There are serveral &#160;services involved in this application (the multicast UDP<br />&gt;protocol, a shell, the ip_queue reader and others), &#160;but a major problem as<br />&gt;stated above MUST get the application down with some special clean up.<br /><br />So there needs to be an object that represents the "whole application", which has references to all these services. &#160;The reactor should not be serving that purpose.<br /><br />&gt;Glyph, I hope you understand my rustic English in the explanation above. Any<br />&gt;advice or suggestion please respond this email.<br /><br />It's not too bad :)</body></html>