[Python-ideas] Async API: some code to review

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Oct 30 21:37:44 CET 2012


Kristján Valur Jónsson wrote:
> in StacklessIO (our custom sockets lib for stackless) multiple tasklets can
> have an "accept" pending on a socket, so that when multiple connections arrive,
> wakeup time is minimal.

With sufficiently cheap tasks, there's another way to approach
this: one task is dedicated to accepting connections from the
socket, and it spawns a new task to handle each connection.

-- 
Greg



More information about the Python-ideas mailing list