[Twisted-Python] How to get protocol function do not block server?

aerodew ssgzhantr at gmail.com
Tue Sep 26 05:54:04 EDT 2006

Is it have to be deferToThread ?

   I think so.since if you don't want to block server ,you should let the
time-consuming process run in a separate thread from the main one

And also does dataReceived blocks server by itself?

   yes, if you have ever hacked implementation of reactor,you will see that
reactor just dispatches  the data recevied  event  to correspondent
protocol's dataReceived handle.
   there is a threadable reactor available,but seemingly it is not stable
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20060926/f8553a8f/attachment.htm 

More information about the Twisted-Python mailing list