You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
strace show that bind(10, {sa_family=AF_INET, sin_port=htons(8088), sin_addr=inet_addr("255.255.255.255")}, 16) = 0
And 255.255.255.255 seems wrong...
I tried luv:
local server = uv.new_tcp()
uv.tcp_bind(server, host, port)
server:listen(128, function(err)
assert(not err, err)
local client = uv.new_tcp()
server:accept(client)
on_connection(client)
end)
And it supports ipv6.
But if I reinstall async this luv example stop work with:
attempt to call method 'listen' (a nil value)
stack traceback:
test_luv.lua:8: in function 'create_server'
test_luv.lua:22: in main chunk
[C]: in function 'dofile'
...arev/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406680
The text was updated successfully, but these errors were encountered:
async does seem to have ipv6 issues. i didn't spend time tracking them down, but i ran into similar issues.
One solution is to bind to 0.0.0.0 which works even with ipv6 (but binds to alll interfaces which might be insecure depending on what you want to do)
Is it possible to use async for ipv6?
I tried something like this:
strace show that bind(10, {sa_family=AF_INET, sin_port=htons(8088), sin_addr=inet_addr("255.255.255.255")}, 16) = 0
And 255.255.255.255 seems wrong...
I tried luv:
And it supports ipv6.
But if I reinstall async this luv example stop work with:
attempt to call method 'listen' (a nil value)
stack traceback:
test_luv.lua:8: in function 'create_server'
test_luv.lua:22: in main chunk
[C]: in function 'dofile'
...arev/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406680
The text was updated successfully, but these errors were encountered: