Closed GoogleCodeExporter closed 9 years ago
Are you using the same DNS object in different threads? Since you are using a
synchronous lookup, this is probably a bad idea. I don't know if the adns
library is
thread-safe or not. I would tend to suspect it isn't because it's designed for
asynchronous operation which tends to be single-threaded.
I would recommend using separate DNS objects per thread if you are doing
synchronous
lookups, as synchronous lookups will block until the answer is returned.
Original comment by farcep...@gmail.com
on 4 Sep 2007 at 2:39
Thank you, I suspected as much. I will change my code and check if the error
persists.
Original comment by ludovico...@siassb.eu
on 4 Sep 2007 at 2:43
Don't forget to report your findings here.
Original comment by farcep...@gmail.com
on 4 Sep 2007 at 7:02
I localized the dns client for each thread, and everything seems to work.
Classic
newbie mistake, thanks for pointing it out. :)
Original comment by ludovico...@siassb.eu
on 6 Sep 2007 at 12:35
Closing
Original comment by farcep...@gmail.com
on 6 Sep 2007 at 3:23
Original issue reported on code.google.com by
ludovico...@siassb.eu
on 4 Sep 2007 at 2:27