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

Make network.dial honor context cancellation. #2061

Merged
merged 13 commits into from
Sep 26, 2023
Merged

Conversation

danlaine
Copy link

Why this should be merged

network.dial doesn't honor context cancellation but it should.

How this works

Check for context cancellation.

How this was tested

New regression test.

@danlaine danlaine added bug Something isn't working networking This involves networking labels Sep 21, 2023
@danlaine danlaine self-assigned this Sep 21, 2023
@danlaine danlaine changed the title Fix dial context Make network.dial honor context cancellation. Sep 21, 2023
Copy link
Contributor

@joshua-kim joshua-kim left a comment

Choose a reason for hiding this comment

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

Change looks fine to me but want to get rid of the time-based heuristic in the unit test

network/network_test.go Outdated Show resolved Hide resolved
@danlaine danlaine requested a review from joshua-kim September 25, 2023 16:23
network/network.go Outdated Show resolved Hide resolved
@StephenButtolph StephenButtolph added this pull request to the merge queue Sep 26, 2023
Merged via the queue into dev with commit d0655ae Sep 26, 2023
15 checks passed
@StephenButtolph StephenButtolph deleted the fix-dial-context branch September 26, 2023 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working networking This involves networking
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants