Hi dnspython team,
I'm glad that we use your library in Gajim to make srv lookups
for xmpp servers. Apparently we decided to make a switch to a
threadless, asynchronous nework model and we faced a problem: srv
lookups are the only blocking part of our connection initialisation. Is
it possible that (in some of the new releases) there is a support for
nonblocking queries? Subset of methods, which will allow us to attach
the waiting actions in idle loop.
I can think of something like this, though many other implementations
are possible:
def callback(self, Answer):
# we get the results here
query = dns.resolver.query(params, callback)
.....
query.loop() # we call this on a certain time interval
....
Thanks,
D. Kirov
_______________________________________________
dnspython-dev mailing list
[EMAIL PROTECTED]
http://woof.play-bow.org/mailman/listinfo/dnspython-dev