Skip to content

Don't call HttpCloseUrlGroup if you didn't create it #28336

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 2 commits into from
Dec 4, 2020

Conversation

shirhatti
Copy link
Contributor

@shirhatti shirhatti commented Dec 2, 2020

Added a _created bool to track whether we created or attached to the UrlGroup

@shirhatti
Copy link
Contributor Author

Not sure how to test this 😕 HttpCloseUrlGroup doesn't fail unless called from a different process

@Tratcher
Copy link
Member

Tratcher commented Dec 3, 2020

This seems fine. If we really wanted to test it we could spin up a separate process for the delegator. We have tests like that in Hosting.

@shirhatti shirhatti merged commit 5c0daf9 into master Dec 4, 2020
@shirhatti shirhatti deleted the shirhatti/dontcloseurlgroup branch December 4, 2020 00:47
@shirhatti shirhatti added this to the 6.0-preview1 milestone Dec 4, 2020
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HttpSysRequestDelegationFeature - DelegationRule.Dispose() - Call to HttpCloseUrlGroup Fails with result ERROR_INVALID_PARAMETER
3 participants