lua-users home
lua-l archive

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


>Can socket.dns.tohostname(address) in Lua Sockets be set not to block, 
>so other unrelated connections are not forced to wait?
>
>Anyone come across this?
>
>Anyone have lua example code doing dns lookups that I could examine to 
>create a coroutine that doesn't block?
>
>Cheers.

Don't know about a LUA-binding, but libevent (http://monkey.org/~provos/libevent/) has support for non-blocking DNS resolution.


   Jörg