Re: [Twisted-Python] a problem about iocp and callInThread

2011-05-15 Thread Dfgqq Dfgqq
Hi all I modified my code as reactor.callFromThread(reactor.callLater, self.wait, reactor.callInThread, self.Execute) based on your comments. now the problem have been solved. Thanks your guys. I appreciate your help. Regards gelin yan On Mon, May 16, 2011 at 12:29 AM, wrote: > On 04:10 pm,

[Twisted-Python] a problem about iocp and callInThread

2011-05-15 Thread Dfgqq Dfgqq
Hi all I just encountered a problem about iocp reactor & callInThread. I paste the code following: from twisted.internet import iocpreactor iocpreactor.install() from twisted.internet import reactor class ThreadTest: def __init__(self,name): self.count = 0 self.max = 5

Re: [Twisted-Python] when to use callInThread?

2011-05-07 Thread Dfgqq Dfgqq
Hi Ivh I just finished the reading of deterToThread Part. I think it is what i need. Thank you anyway.. Regards gelin yan On Sat, May 7, 2011 at 5:49 PM, Laurens Van Houtven <_...@lvh.cc> wrote: > Why is it invoked in a multithread environment? You can use deferToThread, > which gives you a

[Twisted-Python] when to use callInThread?

2011-05-07 Thread Dfgqq Dfgqq
Hi all I have a function like: def longQuery(xxx) this function will be invoked simultaneously (it means multiple thread environment) and this function may take a while to complete. so my question is whether i should use reactor.callInThread to take benefit from non blocking or use deferred

Re: [Twisted-Python] Twisted featured on The Changelog

2011-05-06 Thread Dfgqq Dfgqq
thanks Glyph for bringing us a practical lib for async handling.. in particular it works greatly on windows which many persons considered a second level citizen... On Fri, May 6, 2011 at 2:11 AM, Glyph Lefkowitz wrote: > On May 3, 2011, at 5:46 PM, Kevin Horn wrote: > > On Tue, May 3, 2011 at 4:1

[Twisted-Python] Fwd: Did anyone use twisted on windows (IOCP)?

2011-04-29 Thread Dfgqq Dfgqq
-- Forwarded message -- From: Dfgqq Dfgqq Date: Wed, Apr 27, 2011 at 11:11 PM Subject: Re: [Twisted-Python] Did anyone use twisted on windows (IOCP)? To: Twisted general discussion Hi glyph Thanks for your replying.. I didn't say it was a bug because it probably caus

Re: [Twisted-Python] Did anyone use twisted on windows (IOCP)?

2011-04-27 Thread Dfgqq Dfgqq
version of twisted is working fine. I really like it. Regards GELIN YAN On Wed, Apr 27, 2011 at 4:48 PM, Glyph Lefkowitz wrote: > > On Apr 27, 2011, at 3:28 AM, Dfgqq Dfgqq wrote: > > > Hi All > > > > Currently, i am planning rewrite some parts with twisted &am

[Twisted-Python] Did anyone use twisted on windows (IOCP)?

2011-04-27 Thread Dfgqq Dfgqq
Hi All Currently, i am planning rewrite some parts with twisted & iocp. These parts are related to Tcp connection without SSL. I want to know whether IOCP is ready for production or not. I ran some tests with twisted 10.20, 8.10 before. The IOCP part had many problems. I haven't give a