Comments (5)
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 [email protected]
on 4 Sep 2007 at 2:39
- Added labels: Component-Logic
from adns-python.
Thank you, I suspected as much. I will change my code and check if the error
persists.
Original comment by [email protected]
on 4 Sep 2007 at 2:43
from adns-python.
Don't forget to report your findings here.
Original comment by [email protected]
on 4 Sep 2007 at 7:02
from adns-python.
I localized the dns client for each thread, and everything seems to work.
Classic
newbie mistake, thanks for pointing it out. :)
Original comment by [email protected]
on 6 Sep 2007 at 12:35
from adns-python.
Closing
Original comment by [email protected]
on 6 Sep 2007 at 3:23
- Changed state: Invalid
from adns-python.
Related Issues (16)
- adns module memory leak? HOT 1
- Segmentation fault after ands.completed() HOT 1
- use after free? HOT 1
- Installation failed with pip on Ubuntu 12.10 HOT 2
- Errors found by static analysis HOT 1
- Misleading self doc strings and poor self documentation
- IPv6 support HOT 1
- PTR lookup doesn't work always
- adns 1.2 api breakage HOT 2
- python-adns and SRV records HOT 2
- non allocated memory freed HOT 4
- Memory leak has been found in function interpret_answer HOT 1
- generator function for faster callbacks HOT 1
- RemoteConfigError never thrown by adns.exception
- no documentation or docstrings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adns-python.