Skip to content
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

Remove caching UDP connections to external nameservers #1068

Closed
wants to merge 1 commit into from

Conversation

sanimej
Copy link

@sanimej sanimej commented Apr 1, 2016

An optimization was added earlier to cache the connections to external UDP servers so that it can be reused for subsequent queries. But this creates an issue when multiple concurrent queries are sent on the connection and replies come back in a different order. This PR removes the udp connection caching in embedded DNS server.

Fixes #1070

Signed-off-by: Santhosh Manohar santhosh@docker.com

Signed-off-by: Santhosh Manohar <santhosh@docker.com>
@mavenugo
Copy link
Contributor

mavenugo commented Apr 1, 2016

@sanimej can you please add fixes attribute to #1070 ?

@mavenugo
Copy link
Contributor

mavenugo commented Apr 1, 2016

LGTM

@sanimej
Copy link
Author

sanimej commented Apr 4, 2016

Having the cache makes the forwarded query handling more optimal. Will push a new PR to address the concurrent query issue while retaining the caching logic.

@sanimej sanimej closed this Apr 4, 2016
@sanimej sanimej deleted the fixes branch April 19, 2017 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants