<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 23, 2010, at 2:30 PM, Ramiro Alba Queipo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Menlo; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="font-family: monospace; ">I wonder, if I client using pygtk, can logout from the server without<br>calling reactor.stop(), as you would kill the GUI. I tried to delete the<br>perspective got from the server but it does not work...<br></span></span></blockquote></div><br><div>The simplest thing you can do to achieve this is 'broker.transport.loseConnection()'.</div><div><br></div><div>Of course, that just unceremoniously drops the connection. &nbsp;You may want to have a 'remote_disconnect' method on the server too, if you have any state you would like to cleanly finish up with first.</div><div><br></div><div>Your GUI is already handling disconnection due to network problems though, right? &nbsp;:-) &nbsp;So the modification to make it handle this slightly-cleaner disconnect should be minor. &nbsp;If it doesn't, see the notifyOnDisconnect API in PB: &lt;<a href="http://twistedmatrix.com/documents/10.0.0/api/twisted.spread.pb.Broker.html#notifyOnDisconnect">http://twistedmatrix.com/documents/10.0.0/api/twisted.spread.pb.Broker.html#notifyOnDisconnect</a>&gt;.</div><div><br></div></body></html>