[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Non-blocking dns queries
- From: Richter, Jörg <Joerg.Richter@...>
- Date: Mon, 19 Mar 2007 15:52:29 +0100
>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?
Don't know about a LUA-binding, but libevent (http://monkey.org/~provos/libevent/) has support for non-blocking DNS resolution.