Skip to content

Conversation

AcidZealot
Copy link

We have to close the whole response to immediately send it to the browser before we stop HttpListener or the browser will get nothing

Fixes #5474

Changes proposed in this request
We close request to send it to the browser. If we close stream only the request may not send immediately and can be lost when we stop HttpListener after handling the request.

Testing
No new tests

Performance impact
No performance impact

We have to close the whole response to immediately send it to the browser before we stop HttpListener or the browser will get nothing
@AcidZealot AcidZealot requested a review from a team as a code owner September 12, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Authentication using desktop browser sometimes closes http connection without valid response
1 participant