-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[release/5.0-rc2] Restore exception compatibility in TcpListener.EndAccept*** #41938
[release/5.0-rc2] Restore exception compatibility in TcpListener.EndAccept*** #41938
Conversation
CI failures seem to be Helix issues (failing to proceed after successful test run). None of them seemt obe related to |
Tagging subscribers to this area: @dotnet/ncl |
IAsyncResult iar = listener.BeginAcceptSocket(callback: null, state: null); | ||
|
||
// Give some time for the underlying OS operation to start: | ||
Thread.Sleep(50); |
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.
We often see tests fail because of slow test machines, I wonder whether this will reliably be long enough.
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.
In this test the next call should throw ObjectDisposedException
independently from timing, so slow machines should not bring an issue hopefully.
@antonfirsov OK to merge when green. |
@dotnet/dnceng it seems Helix had some issues while running some of these legs. Eg.,
|
I clicked rerun failed jobs. |
Sounds like fairly typical network flakiness but taking a peek |
Backport of #41745 to release/5.0-rc2
/cc @antonfirsov
Customer Impact
Removes an unwanted breaking change (#41585), improving migration experience for for users of
TcpListener
.This was discovered during app-compat testing.
Testing
A (previously missing) test has been introduced for the case.
Risk
Low or none. The change is limited to the APM methods of
TcpListener
.