lua-users home
lua-l archive

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

On Tue, Apr 9, 2013 at 10:29 AM, steve donovan <> wrote:
Since XP still has another year before it is dustbinned, and assuming that LuaSocket is actually released this year, we do have to sort this out.

OK, sorted by the old expedient of a special case in luasocket.lua - adding this to the first lines of bind()
    --if host == "*" then host = "" end
    if host == "localhost" or host == "*" then
        sock, err = socket.tcp()
        if not sock then return nil, err end
        res, err = sock:bind(host,port)
        if not res then return nil, err end
        res, err = sock:listen(backlog)
        if not res then sock:close(); return nil,err end
        return sock

That is, use old IPV4 logic for local servers, and then the tests pass. Now to work out when this special case kicks in...