Skip to content

Clarify CookieContainer thread-safety #11171

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

antonfirsov
Copy link
Member

This PR supplements dotnet/docs#45658 by clarifying that CookieContainer methods are thread-safe but also noting the dangers of unanticipaded CookieContainer sharing.

Fixes #1535
Fixes #10770

@antonfirsov antonfirsov requested a review from a team as a code owner April 8, 2025 01:12
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Apr 8, 2025
@antonfirsov antonfirsov added area-System.Net and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Apr 8, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl

Copy link

Learn Build status updates of commit b3f9a00:

⚠️ Validation status: warnings

File Status Preview URL Details
xml/System.Net/CookieContainer.xml ⚠️Warning View Details

xml/System.Net/CookieContainer.xml

  • Line 0, Column 0: [Warning: disallowed-html-tag - See documentation] HTML tag 'format' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

@@ -79,6 +79,19 @@

]]></format>
</remarks>
<threadsafe>
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a legit tag?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but looks like it cannot handle embedded <format> :( Will move the content to <remarks>.

Co-authored-by: Genevieve Warren <[email protected]>
Copy link

Learn Build status updates of commit 26d016e:

⚠️ Validation status: warnings

File Status Preview URL Details
xml/System.Net/CookieContainer.xml ⚠️Warning View Details

xml/System.Net/CookieContainer.xml

  • Line 0, Column 0: [Warning: disallowed-html-tag - See documentation] HTML tag 'format' isn't allowed. Replace it with approved Markdown or escape the brackets if the content is a placeholder.

For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CookieContainer has no information on thread safety Missing information on thread safety
2 participants