-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Add support for setting security attributes on Http.Sys RequestQueue #61325
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
Conversation
10ebaa7
to
cabcc2f
Compare
@@ -143,6 +174,9 @@ public void Dispose() | |||
} | |||
|
|||
_disposed = true; | |||
|
|||
PInvoke.HttpCloseRequestQueue(Handle); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a reasonable change but unrelated to this PR. Drive-by bug fix or is it related somehow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drive-by, was just reading the docs for HttpCreateRequestQueue to make sure I was doing the correct thing with the security attribute and noticed it said you should close the queue handle with HttpCloseRequestQueue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few questions inline but LGTM overall!
@@ -42,6 +42,7 @@ HTTPAPI_VERSION | |||
HttpCancelHttpRequest | |||
HttpCloseServerSession | |||
HttpCloseUrlGroup | |||
HttpCloseRequestQueue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this file for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's how the cswin32 source generator decides what methods to create PInvokes for
https://microsoft.github.io/CsWin32/docs/getting-started.html
Fixes #61084