>>>> Is it legal to store a copas connection in one handler and to use it
>>>> in another handler?

>>> NO. It's illegal.

> Why? Its operations will yield, but that's not specific to any
> particular coroutine.

If it is legal, then I'm observing a bug (see case to reproduce it in
my previous post).

I store a connection from one handler and send data to it from another handler.
If send yields (it does it with 10% probability due to math.random),
and I exit from second handler on the same tick, then copas closes my
stored connection  instead of the dead handler's original connection.

I'd like to know copas developer's official position on this issue, as
it is critical for my code.

Alexander.

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

Reply via email to