[Twisted-Python] Serious performance problem of twisted

davy zhang davyzhang at gmail.com
Sun Oct 19 08:49:33 EDT 2008


- - oh..... Thanks a lot - -.... I nearly want to start my own server
code ...I should read that faq before I started my project.:p

thanks again~!

On Sun, Oct 19, 2008 at 8:03 PM, Thomas Hervé <therve at free.fr> wrote:
> Le dimanche 19 octobre 2008 à 19:38 +0800, davy zhang a écrit :
>> a very simple server and multi-process code, I found there's about 500
>> milliseconds delay for every msg I sent to client I just don't why,
>> did I made something wrong ?
>
> Short answer:
> http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#WhydoesittakealongtimefordataIsendwithtransport.writetoarriveattheothersideoftheconnection
>
> A bit more elaborated: yes, you did something wrong. The Twisted APIs
> are not threadsafe, thus you must not call any Twisted method from a
> thread, except reactor.callFromThread. See
> http://twistedmatrix.com/projects/core/documentation/howto/threading.html for more information.
>
>
> --
> Thomas
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>




More information about the Twisted-Python mailing list