lua-users home
lua-l archive

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


On Wed, Feb 24, 2010 at 6:34 PM, Sam Roberts <vieuxtech@gmail.com> wrote:
> This is purely a luasocket behaviour. The system calls allow bind() to
> fail, leaving the socket valid.

Only on some systems.

> This behaviour of luasocket is particularly anti-social when
> attempting to repeatedly bind to local ports, to search for one that
> is free.

You're supposed to create a new socket after a failed bind.  Read your
Stevens. :)