-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix possible stack overflow in HttpListener #74644
Conversation
Tagging subscribers to this area: @dotnet/ncl Issue Detailsnull
|
This reflects fixes from dotnet/runtime#74644
I see that there is a similar problem inside Rewriting the |
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.
LGTM.
Any chance we can add a test?
And it seems to break some trimming tests for what ever reason.
I was unable to trigger the stack overflow using my local program, so I don't trying to convert it to a test would be useful. |
Test failure is #74795 |
* Update AsyncSockerServer to fix possible StackOverflow This reflects fixes from dotnet/runtime#74644 * Fix compilation * Update AsyncSocketServer.cs * Update snippets/csharp/System.Net.Sockets/SocketAsyncEventArgs/Overview/AsyncSocketServer.cs Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
Fixes #73674.
This PR replaces mutual recursion between
Accept
andProcessAccept
by a loop inAccept
, which avoids infinite recursion.