Closed subnetmarco closed 9 years ago
Not really. You'd need an external library for that. LuaSocket uses POSIX calls and they do not support timeout.
You could try running the method "socket.dns.toip()" in another thread, and if the timeout is reached just kill the thread. Of course you'd then need another library for some kind of thread implementation. Not sure if it helps, Just an idea I had....
Is it possible to set a timeout on
socket.dns.toip()
?