[Stackless] Listening to a socket with stacklesslib

Richard Tew richard.m.tew at gmail.com
Mon Jul 23 07:33:05 CEST 2012


On Mon, Jul 23, 2012 at 4:30 PM, Jeff Harper <jeff1.61803 at gmail.com> wrote:
> Thanks for the response.  I didn't know there was a newer version
>
> of stacklesslib.  I will definitely give it a try.  I had hoped
> that by calling the MainLoop.run method, stacklesslib would "get
> all the pumping it needs."  Here's the code in s.py that calls
> MainLoop.run().
>
>
> if GO_STACKLESS:
>     stackless.tasklet(do_server)()
>     app = stacklesslib.main.MainLoop()
>     app.run()
>
> Is there something else I need to do to pump the socket module?

Jeff,

All the information you needed was in my previous reply :-)

... Go into monkeypatch.py and change will_be_pumped argument passed into
patch_socket, to default to False ...

If you do that, all the necessary pumping will get done.

Cheers,
Richard.



More information about the Stackless mailing list