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

Fix the handling for concurrent queries over UDP #1073

Merged
merged 1 commit into from
Apr 4, 2016
Merged

Conversation

sanimej
Copy link

@sanimej sanimej commented Apr 4, 2016

For queries forwarded over a cached connection to external servers maintain the context for the queries so that reply from the external server can be sent back to the right client connection.

Fixes #1070

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

Signed-off-by: Santhosh Manohar <santhosh@docker.com>
break
case "udp":
if cc, ok = r.client[msg.Id]; ok == false {
w = nil
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should just return nil here. There is no point in proceeding since the entry is not in the map.

@sanimej
Copy link
Author

sanimej commented Apr 4, 2016

@mrjana Thanks. Addressed the comment. PTAL.

@mrjana
Copy link
Contributor

mrjana commented Apr 4, 2016

LGTM

1 similar comment
@aboch
Copy link
Contributor

aboch commented Apr 4, 2016

LGTM

@aboch aboch merged commit b68a43c into moby:master Apr 4, 2016
@sanimej sanimej mentioned this pull request Apr 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants