HttpStress: add randomized header operation
authorEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Thu, 25 Jul 2019 17:21:30 +0000 (18:21 +0100)
committerEirik Tsarpalis <eirik.tsarpalis@gmail.com>
Thu, 25 Jul 2019 17:21:30 +0000 (18:21 +0100)
commitfbf7c6e7965af33dec81c1c55ad18624eb0a9f2f
treeb069b17d4c02dd4b6cceaa953145682b7e4e34f2
parentbb68af95edb9c5533b3ea3637376a007850b7271
HttpStress: add randomized header operation

Aguments the stress suite with an "Echo Header" operation
which sends and receives a randomly generated set of headers.
Additionally expands random string to full alphanumeric or ascii range.
Fixes a bug where `n - 1` workers were being initialized.

Commit migrated from https://github.com/dotnet/corefx/commit/ac3e0d6f35dfccdd70bacfc09941fef791192da5
src/libraries/System.Net.Http/tests/StressTests/HttpStress/ClientOperations.cs
src/libraries/System.Net.Http/tests/StressTests/HttpStress/Program.cs
src/libraries/System.Net.Http/tests/StressTests/HttpStress/StressClient.cs
src/libraries/System.Net.Http/tests/StressTests/HttpStress/StressServer.cs