Page 1 of 1

[Solved] LuaSocket broken in 11.0/11.1

Posted: Sat Jun 09, 2018 5:15 am
by Parameterized
The attached love file (same code here - https://repl.it/@parameterized/LuaSocket-Test) works in 0.10.2, but not 11.0.0 or 11.1.0.
I tried running server update code in another thread in case it was blocking, but that didn't work.
Equivalent code written for udp sockets also worked in 0.10.2 but not 11.0.0.
The update notes mention an update of LuaSocket from 2.0.2 to 3.0rc1. I'm sure this is relevant, but repl uses LuaSocket 3.0rc1 as well and the same code works there.

Re: LuaSocket broken in 11.0/11.1

Posted: Sat Jun 09, 2018 10:16 am
by bartbes
Someone else ran into the problem that binding to * seems to only bind on ipv6. Since you're explicitly using an ipv4 address to connect, that may very well be the same thing you're seeing. Can you try one/both of binding to 0.0.0.0 or connecting to ::1?

Re: LuaSocket broken in 11.0/11.1

Posted: Sat Jun 09, 2018 3:03 pm
by Parameterized
Both of those individually worked, thanks.