[Gajim-devel] blocking getaddrinfo

Damien Thébault 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.
It:
 - 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
using it).

In addition, any comment is welcome concerning libasyncns-python.

Regards,
-- 
Damien Thebault
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gajim-0.11.4-libasyncns.patch
Type: application/octet-stream
Size: 13496 bytes
Desc: not available
URL: <https://www.lagaule.org/pipermail/gajim-devel/attachments/20080701/5ef88ea5/attachment-0001.obj>


More information about the Gajim-devel mailing list