Skip to content

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

Merged
shirhatti merged 2 commits into
masterfrom
shirhatti/dontcloseurlgroup
Dec 4, 2020
Merged

Don't call HttpCloseUrlGroup if you didn't create it#28336
shirhatti merged 2 commits into
masterfrom
shirhatti/dontcloseurlgroup

Conversation

@shirhatti

@shirhatti shirhatti commented Dec 2, 2020

Copy link
Copy Markdown
Contributor

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

@shirhatti

Copy link
Copy Markdown
Contributor Author

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

@Tratcher

Tratcher commented Dec 3, 2020

Copy link
Copy Markdown
Member

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