Adding asynchronous name resolution to GlibC

Björn Persson bjorn at xn--rombobjrn-67a.se
Sat Jan 19 00:07:27 UTC 2013


Lennart Poettering wrote:
> Because doing this externally is really hard. I wrote a library for that
> named "libasyncns", and glib's async resolver is based on that.
> 
> libasyncns is different from other libraries for resolving host names in
> that i actually uses the NSS, rather than just implementing DNS on its
> own. This has the benefit actually all kinds of hostnames are supported,
> including those served from LDAP, NIS, mDNS and whatever the user
> prefers. Now, since NSS and the libc APIs around it are inherentlich
> synchronous the only way to make them asynchronous without touching
> glibc is by running them in a separate thread/process. And doing that
> behind the back of the user is kinda problematic from libraries.
> 
> So, bypassing NSS is not really an option to fix this properly. And if
> you want asynchronous name resolution without involvement of threads and
> suchlike then your only option is to make NSS asynchronous in itself,
> and you cannot do that without reworking glibc substantially.

Thank you for presenting a valid argument instead of just ranting
sarcastically.

Björn Persson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20130119/cfad9740/attachment-0001.sig>


More information about the devel mailing list