Skip to content

Fix net461 test runner hanging after all tests pass#124

Open
eduard-dumitru wants to merge 1 commit intomasterfrom
fix/httplistener_disposal_netframework
Open

Fix net461 test runner hanging after all tests pass#124
eduard-dumitru wants to merge 1 commit intomasterfrom
fix/httplistener_disposal_netframework

Conversation

@eduard-dumitru
Copy link
Collaborator

HttpListener.Stop() does not reliably unblock pending GetContextAsync() on .NET Framework 4.6.1, causing the xUnit test process to never exit. Use Abort()+Close() to force-close the request queue and add a timeout safety net.

HttpListener.Stop() does not reliably unblock pending GetContextAsync()
on .NET Framework 4.6.1, causing the xUnit test process to never exit.
Use Abort()+Close() to force-close the request queue and add a timeout
safety net.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant