Thanks, but how can I pass control back to calling code after starting the reactor? Or the idea is to run it in separate thread? I understand that main idea on twisted is async processing, but this time I need to block the calling code until response is received.<br>
<br><div class="gmail_quote">On Sat, Oct 10, 2009 at 6:10 PM, Johann Borck <span dir="ltr">&lt;<a href="mailto:johann.borck@densedata.com">johann.borck@densedata.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Stanislav Yudin wrote:<br>
&gt; Hi everyone,<br>
</div>&gt; I am having a problem with current twisted trunk (rev 27375). ...  So<br>
<div class="im">&gt; the problem is that the first call to execute returns from<br>
&gt; reactor.run() right after reactor.stop(), but second call to same<br>
&gt; method of same instance do not return ever.<br>
&gt; I believe I am doing something wrong, so please help with find out<br>
&gt; what I&#39;ve missed. Problem code attached.<br>
</div><a href="http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#WhycanttheTwistedsreactorberestarted" target="_blank">http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#WhycanttheTwistedsreactorberestarted</a><br>

<br>
But since you can do everything without restarting the reactor, that&#39;s<br>
no real limitation.<br>
<br>
hth, Johann<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote></div><br>