lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Apr 6, 2011 at 01:40, David Given <dg@cowlark.com> wrote:
> On 05/04/11 21:26, Fabio Mascarenhas wrote:
> [...]

> However, handler() is the main function of the coroutine, so the
> coroutine will now terminate and return into the same _doTick() that had
> skt=clientsocket. _doTick() now correctly detects that the coroutine has
> terminated and tries to close the server socket. Unfortunately, it
> assumes that the last thing it blocked on was serversocket, so it just
> closes skt; which of course is the wrong socket.

Looks like it is the same bug that I reported back in 2009:

http://lists.luaforge.net/pipermail/kepler-project/2009-December/003875.html

Alexander.