On Fri, Dec 18, 2009 at 6:30 AM, Fabio Mascarenhas <[email protected]> wrote:
> As you can see, when the coroutine finishes Copas closes *the socket
> that coroutine was awakened with*. So if you do a copas.send, it
> yields, and then you exit after coming back, Copas closes the socket
> that you sent to. If Javier is here he can tell if that is indeed the
> intended behavior or not. :-)

I'm here.  I didn't answer before because frankly i remember very
little about Copas :-)

but yes, Copas isn't a general purpose multitasking environment with
support for communications; it's a wrapper around select() that
associates coroutines with sockets.  IOW, there's a single concept
that ties a socket and the code that handles it.

in Alexander's case, i think the best would be to add some API to tell
Copas the socket transfer between coroutines.

-- 
Javier

_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to