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
Load Net::DNS::Native before IO::Socket::IP #1308
Conversation
I can't think of any reasonable way to test this. |
Through further testing both IO::Socket::IP and Mojo::IOLoop::TLS must be loaded after, probably due to Mojo::IOLoop::TLS loading IO::Socket::SSL. |
|
Calling for a vote @mojolicious/core. |
I'm not sure if optimizing for older Perls is worth it. Are there any downsides to the change? |
The downsides are the introduced inconsistency in code layout, and that it can only be a partial solution, the setup can still break randomly (by break I mean it just won't use NDN) but at least Mojo::IOLoop::Client can load it in some cases. |
For the record, I've worked around this in my code by loading Net::DNS::Native before anything from Mojo. |
I think since it will randomly break, then I'm negative to this change. I think a documentation update would be better. |
As I mentioned on IRC, and agreeing with others, I don't think that because it cannot really address the issue I don't think this change is merited. I agree with @jhthorsen that a documentation patch would be better however I really wonder if this is an upstream issue with NDN and IO::Socket::*. 👎 |
Thanks all, with at least two negative votes this pull request cannot pass the vote. |
As author of |
Only what is in the referenced issue #716. |
Summary
With the current load order Net::DNS::Native is never used in one setup because it fails to load due to IO::Socket::IP defining non thread safe symbols.
Motivation
Loading it first seems to fix the issue.
References