[Stackless] Twisted and Stackless Re: An idea for making

Christopher Armstrong radix at twistedmatrix.com
Wed Sep 13 17:19:17 CEST 2006

On 9/13/06, Andrew Francis <andrewfr_ice at yahoo.com> wrote:
> From: radix at twistedmatrix.com
> Radix>You might want to check out
> Radix>http://www.stackless.com/wiki/TwistedOnStackless
> Radix, I have seen that webpage. However I did not see
> how it would solve my fundamental problem, my
> application blocking indefinitely when waiting for an
> incoming connection.
> To recap my problem, pretend one has the following
> situation:
> [C(0) | C(1) | C(n) | S(0)]
> C - client (making a connection)
> S - server (accepting a connection)
> | - running in parallel
> In this scenario, the S will block Twisted and the
> Stackless VM (Bob Ippolito pointed this out). Blocking
> cuts down on throughput. I don't see how Deferred help
> here. However calls to TaskLoop that periodically call
> a callback, which in turn, call stackless.schedule(),
> giving waiting clients a chance to execute. Another
> advantage is that I can use TaskLoop to run a proper
> timer.

I have no idea how you got there. If you're using the usual connect and
listen methods, connectTCP and listenTCP (and their siblings for UDP, SSL,
etc), they will certainly not block.

Christopher Armstrong
International Man of Twistery
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20060913/5ee202d1/attachment.htm>
-------------- next part --------------
Stackless mailing list
Stackless at stackless.com

More information about the Stackless mailing list