lua-users home
lua-l archive

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


http://stackoverflow.com/questions/11684691/socket-bind-fails-even-after-using-so-reuseaddr-with-ipv6

It is ok what you are trying to do (reusing the socket) but only when they are in time_wait. ie. your tests will run ok, but the code you posted won't.

In Windows, the get closed right away (so no need to set reuseaddr).