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