Package: python-gevent
Severity: normal
Version: 1.0-2

Dear maintainer,

I want to suggest using the ares DNS resolver in gevent by default on Debian.

From http://gevent.org/whatsnew_1_0.html:

"""
Two new DNS resolvers: threadpool-based one (enabled by default) and c-ares based one. That threadpool-based resolver was added mostly for Windows and Mac OS X platforms where c-ares might behave differently w.r.t system configuration. On Linux, however, the c-ares based resolver is probably a better choice. To enable c-ares resolver set GEVENT_RESOLVER=ares environment variable.
"""

One nasty things that goes away when setting GEVENT_RESOLVER=ares is this:

If you use gevent for DNS resolution everything works fine directly after application start. But when the DNS server address (/etc/resolv.conf) changes, then gevent would not notice that. Further DNS lookups end in Nirwana. With GEVENT_RESOLVER=ares, everything works smoothly on network changes (LAN -> WiFi / OpenVPN, etc.).

Greets,
Mike



--

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: [email protected], http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb

Attachment: pgp3rVb_gtyft.pgp
Description: Digitale PGP-Signatur

Reply via email to