lua-users home
lua-l archive

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


> It's not that easy to make connect non-blocking.

yes, that is unfortunately true -
http://cr.yp.to/docs/connect.html has the gory details...

> DNS queries are still blocking and that I can't solve.

libresolv (the most common unix resolver library) makes
this difficult/impossible.  fortunately, there are
alternative libraries that make it easy to do
asynchronous dns lookups (e.g. skadns) if one really
needs them.