[Stackless] Proposed modification WRT threading and scheduling

Arnar Birgisson arnarbi at gmail.com
Sat Jan 26 11:39:50 CET 2008

On Jan 26, 2008 6:31 AM, Christian Tismer <tismer at stackless.com> wrote:
> I think the changes are in, actually a bit before I wrote my
> reply (which was very late, of course)

Thanks Christian. I'm not sure if that is what is affecting the
wsgi-server. Running it with a simple hello-world wsgi-app is ok for
one request, but after that it just exits.

I tried changing



while self.running: # self is the wsgi server obj.

But then it just hangs after the first request.

There is a tasklet that calls .accept() on a stacklesssocket-like
object, in a similar loop (while self.running). That loop doesn't seem
to terminate (verified with print statements).

I guess the problem is that I'm confused about the semantics of run().
Richard talked about adding a parameter to revert to the old behaviour
for single threaded programs. Is that in there (not mentioned in


More information about the Stackless mailing list