Skip to content

Remove unneeded assertion #169

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

Merged
merged 5 commits into from
Feb 27, 2020
Merged

Remove unneeded assertion #169

merged 5 commits into from
Feb 27, 2020

Conversation

PopFlamingo
Copy link
Contributor

Motivation:
assertion on activity sometimes fails but it turns out it is overly restrictive, if the state of an HTTP1ConnectionProvider is already set to closing or closed then this means we have nothing to do and can simply move on to the next connection provider we want to close

Changes:

  • remove assertion and accept any given activity in prepareForClose

PopFlamingo and others added 2 commits February 26, 2020 17:08
motivation: assertion on activity sometimes fails but it turns out it is overly restrictive

changes:
- remove assertion and accept any given activity in prepareForClose
weissi and others added 2 commits February 26, 2020 19:02
Motivation:

There's an edge case where the connection pool won't tolerate closing
connections during syncShutdown.

Modification:

Add test case.

Result:

better coverage
Copy link
Contributor

@weissi weissi left a comment

Choose a reason for hiding this comment

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

thank you!

@weissi weissi merged commit 473c518 into swift-server:master Feb 27, 2020
@PopFlamingo PopFlamingo deleted the remove-useless-assertion branch February 27, 2020 18:26
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