[Gajim-devel] blocking getaddrinfo
damien.thebault at gmail.com
Tue Jul 1 21:01:36 CEST 2008
On Tue, Jul 1, 2008 at 20:03, Jonathan Schleifer <js-gajim at webkeks.org> wrote:
> "Damien Thébault" <damien.thebault at gmail.com> wrote:
>> Ok, let's put this code somewhere now :)
>> I'll maybe post the patch for gajim if someone is interested.
> Feel free to post it here so it can be applied post-0.12.
The project is now hosted here: https://code.launchpad.net/libasyncns-python
Attached is the patch I talked about before.
- creates src/common/asyncresolver.py
- removes src/common/nslookup.py (not really needed, but I wanted to
be sure it wasn't used anymore, feel free to keep it ;))
- adds resolver.process() in process_connections() (which is only
called once every 2s on unix, by the way)
You need to install the python binding libasyncns.so, you don't have
to install it on the system, put the file next to asyncresolver.py and
it will work!
As the name suggests, it applies agains gajim 0.11.4.
I don't think it should be applied as-is, maybe a complete resolving
framework should be set-up (to be sure that every hostname is resolved
In addition, any comment is welcome concerning libasyncns-python.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 13496 bytes
Desc: not available
More information about the Gajim-devel