[Twisted-Python] Reactor events help request ..

Watson, David David.Watson at windriver.com
Wed Feb 24 09:31:59 EST 2010

Hi Andrew ..

I want to thank you for your help .. I just looked at the link articles that you suggested and that sounds like the correct diagnosis to the problem .. I thought that there was a solution somewhere, I was just not able to find the correct information to aid in finding out what was actually happening .. With your guidance, I think this may be the problem, I'll let you know how I fair out ..

Thanks again for your help, I had just about given up on solving this problem ..


Dave W.

-----Original Message-----
From: twisted-python-bounces at twistedmatrix.com [mailto:twisted-python-bounces at twistedmatrix.com] On Behalf Of Andrew Bennetts
Sent: Wednesday, February 24, 2010 2:01 AM
To: Twisted general discussion
Subject: Re: [Twisted-Python] Reactor events help request ..

Watson, David wrote:
>    However, it appears to me that the self.sendLine(msg)  and or the
>    self.transport.write(msg) writing  functions are blocked
>    functions waiting for a reactor event to occur at a future scheduled time
>    before acutally flushing out the internal write buffers ..

This sounds very much like you are calling Twisted APIs from threads (other than the thread the reactor is running in).  If so, that's your problem.  See <http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#WhydoesittakealongtimefordataIsendwithtransport.writetoarriveattheothersideoftheconnection>
and <http://twistedmatrix.com/documents/current/core/howto/threading.html>.


Twisted-Python mailing list
Twisted-Python at twistedmatrix.com

More information about the Twisted-Python mailing list