Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Several Http test fixes to hopefully improve test reliability #29238

Merged
merged 1 commit into from
Apr 20, 2018

Conversation

stephentoub
Copy link
Member

  • Add “Connection: close\r\n” response header in more cases where the loopback server explicitly closes a connection, and in particular where the client makes multiple connections.
  • Change several Task.WaitAlls on paired tasks to instead use our WhenAllOrAnyFailed helper.

Fixes https://github.com/dotnet/corefx/issues/27064 (hopefully).

The failure from https://github.com/dotnet/corefx/issues/9543 also appears to now be much more deterministic; at least with WinHttpHandler the failure now repros for me every time.

cc: @davidsh, @geoffkizer

- Add “Connection: close\r\n” response header in more cases where the loopback server explicitly closes a connection, and in particular where the client makes multiple connections.
- Change several Task.WaitAlls on paired tasks to instead use our WhenAllOrAnyFailed helper.
@stephentoub
Copy link
Member Author

@dotnet-bot test Outerloop Windows x64 Debug Build please
@dotnet-bot test Outerloop Linux x64 Release Build please

@stephentoub stephentoub merged commit cebcf43 into dotnet:master Apr 20, 2018
@stephentoub stephentoub deleted the httptests branch April 20, 2018 22:21
@karelz karelz added this to the 2.2.0 milestone Apr 21, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…/corefx#29238)

- Add “Connection: close\r\n” response header in more cases where the loopback server explicitly closes a connection, and in particular where the client makes multiple connections.
- Change several Task.WaitAlls on paired tasks to instead use our WhenAllOrAnyFailed helper.

Commit migrated from dotnet/corefx@cebcf43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test failure: MaxConnectionsPerServer_WaitingConnectionsAreCancelable
3 participants