lua-users home
lua-l archive

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


On Wed, Nov 20, 2013 at 01:36:36PM +0100, Daurnimator wrote:
> And infact, all it does is use getaddrinfo() in another thread.
> This causes hours of fun when your program doesn't use pthreads elsewhere (
> http://cygwin.com/ml/libc-help/2012-07/msg00024.html )
> 
> In the end; is probably is better to just use something like lanes to do it
> yourself.
> Infact, the conclusion I usually end up is intergrating a real dns library
> into my main socket handling loop.

In the past, I've just fork()ed off another process to do DNS and such,
and communicate with it over a pipe, whose FD is in my usual selected
set.  It seems much simpler, tbh.

B.