-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
DNS.resolve() should not be sorted in HostEntry::removeDuplicates() #3807
Comments
This issue is stale because it has been open for 365 days with no activity. |
This issue was closed because it has been inactive for 60 days since being marked as stale. |
@lingyphone: is this issue still relevant? |
@aleks-f, @matejk We did tests and on Linux multiple IP's are returned with same value on Windows it doesn't return any duplicates, so it looks like removeDuplicates is a Unix/Linux fix. A fix would be to change the removeDuplicates to remove without sorting, I think sorting was used because it's the easiest way to remove duplicates. (std::unique only checks next item in list, it doesn't check the whole list, so it requires the vector to be sorted. Fix in Net\include\Poco\Net\HostEntry.h by updating removeDuplicates to use std::set/std::remove_if:
|
It is caused by commit 8030564#diff-b38b1a4ab2c3fa8c175cff4b6f7c55e7ce4cd720f423e0a2b91d88b8f472f3cc
And it ruins the DNS round-robin or DNS load-balance
The text was updated successfully, but these errors were encountered: