-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNSClient possibly not thread safe #19
Comments
Thanks for the code example! I'll take a look |
@adam-fowler I made sure the message cache is only accessed from the event loop in #20 . Could you check if this works as expected for your dns setup? |
That seems to have fixed the crash |
Awesome, I had some trouble testing myself because the requests after my first were timing out. What did you use to test? |
@JaapWijnen There might be a problem. It seems to stall sometimes now |
Closing this, as the issue was elsewhere for that project. |
It crashes in
DNSClient.send
. It looks like multiple threads can accessdnsDecoder.messageCache
at the same time. I got this crash with the following codeThe text was updated successfully, but these errors were encountered: