Commit Graph
2312 Commits
Author SHA1 Message Date
Eirik Tsarpalis 8a8bdca968 Merge pull request dotnet/corefx#39774 from eiriktsarpalis/httpserver-add-echo-header-endpoint
HttpStress: Add randomized request headers

Commit migrated from https://github.com/dotnet/corefx/commit/3ebfae3ed729af13e59c0525e7b794327bfd227f
2019-07-26 22:05:57 +01:00
Eirik Tsarpalis 563726e051 take HttpClient.BaseAddress into account when bounding request uri sizes
Commit migrated from https://github.com/dotnet/corefx/commit/d5a0fb96a026447dcf201dc7c19b0b8d41be60f5
2019-07-26 21:40:48 +01:00
Eirik Tsarpalis 39beda7d70 maxRequestLineSize -> MaxRequestUriSize
Commit migrated from https://github.com/dotnet/corefx/commit/920292cf7c763a6963119e7cb7cd2faa149a1cb1
2019-07-26 21:08:57 +01:00
Eirik Tsarpalis 484084df56 respect kestrel request line size
Commit migrated from https://github.com/dotnet/corefx/commit/261ff104b73439fda85a950e2dfb3f5bc8e23c5b
2019-07-26 20:44:31 +01:00
Eirik Tsarpalis 36410dbf1a merge headers and echo headers operations
Commit migrated from https://github.com/dotnet/corefx/commit/e22fbde5ebe4000d682bcb679a3a372050c2bc16
2019-07-26 15:49:09 +01:00
Eirik Tsarpalis f424b22c15 address feedback
Commit migrated from https://github.com/dotnet/corefx/commit/b32c61aa4741668d6f4009649412ff80f5d64f85
2019-07-26 14:12:26 +01:00
Eirik Tsarpalis 6546a083dd address feedback
Commit migrated from https://github.com/dotnet/corefx/commit/88de39071ec291e67f1c5829ea7e9dd30c913da1
2019-07-25 21:54:15 +01:00
Geoff Kizer efd5aca94c Merge pull request dotnet/corefx#39745 from geoffkizer/requesterrorfix
HTTP2: fix race between request failure and response body read

Commit migrated from https://github.com/dotnet/corefx/commit/64a9e2ccf5e590e0a3a3d6dc9c2a7c828850c912
2019-07-25 12:07:05 -07:00
Eirik Tsarpalis fbf7c6e796 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
2019-07-25 18:21:30 +01:00
Eirik Tsarpalis b558ceb022 Merge pull request dotnet/corefx#39632 from eiriktsarpalis/httpstress-segregate-client-server
HttpStress: Allow standalone client and server processes

Commit migrated from https://github.com/dotnet/corefx/commit/b5483cb5280235a94b534c93e678e647cfcecd0c
2019-07-25 12:12:15 +01:00
Stephen Toub bf9054c38c Re-enable xUnit1025 (duplicate InlineData) (dotnet/corefx#39737)
Commit migrated from https://github.com/dotnet/corefx/commit/47d96f89df41ce18d3ba77b38007ec68f7f66fc6
2019-07-25 10:45:20 +02:00
Ahson Khan c59af1de67 Auto-generate the reference assemblies to normalize them (dotnet/corefx#39681)
* Update Microsoft.VisualBasic.Core ref

* Update System.Collections.Concurrent ref

* Update System.Collections.Immutable ref

* Update System.Collections ref

* Update System.ComponentModel.Composition ref

* Update System.Data.Common ref

* Update System.Data.OleDb ref

* Update System.Data.SqlClient ref for netcoreapp

* Update System.Diagnostics.DiagnosticSource ref and DiagnosticSourceActivity.cs

* Update System.IO.Packaging ref for netcoreapp

* Update System.IO.Pipelines ref

* Update System.Linq ref

* Update System.Net.Http ref

* Update System.Net.Security ref

* Update System.Numerics.Tensors ref

* Update System.Reflection.Emit for netcore

* Update System.Security.AccessControl ref

* Update System.Security.Permissions ref

* Update System.ServiceModel.Syndication ref

* Update System.Text.Encodings.Web ref

* Update System.Threading.Channels ref for netcoreapp

* Update System.Utf8String.Experimental ref

* Update System.Utf8String.Experimental csproj to reference new file.

* Upat eSystem.Runtime ref and Manual ref

* Update Microsoft.Bcl.AsyncInterfaces ref

* Disable warning CS8617 for missing nullability annotations within
explicit interface methods.

* Revert System.Runtime.cs back to what's in master.

* Update System.Runtime ref (single change - System.Char -> char).

* Revert System.Collections.Immutable back to what's in master (keep
readonly on private fields).

* Update System.Runtime ref and add comment in Manual ref file for
TypedReference.


Commit migrated from https://github.com/dotnet/corefx/commit/bdd0814360d4c3a58860919f292a306242f27da1
2019-07-25 03:44:48 +00:00
Geoff Kizer d0b3696b1f fix race between request failure and response body read
Commit migrated from https://github.com/dotnet/corefx/commit/a327d792c1590bd9ef744c197dfbb311961d5eef
2019-07-24 13:58:28 -07:00
Geoff Kizer 24ee76b516 Merge pull request dotnet/corefx#39638 from geoffkizer/streamshutdownfixes4
HTTP2: Rework shutdown handling

Commit migrated from https://github.com/dotnet/corefx/commit/ca3fe6738ae6afc56e1f8fb5477a57a8dc2e183c
2019-07-24 02:28:18 -07:00
Geoff Kizer 1e37ef09c1 address review feedback and fix test issue
Commit migrated from https://github.com/dotnet/corefx/commit/d6e6f52c928f56b424b08fcf6e08ea84a74748ab
2019-07-24 00:47:35 -07:00
Stephen Toub cd3ca6f991 Re-enable xunit warning 2004 (dotnet/corefx#39698)
* Replace "Assert.Equal(true, " with "Assert.True("

* Replace "Assert.Equal(false, " with "Assert.False("

And fix a few Assert.Equal(true cases that deal with objects and thus need to be reverted.

* Replace "Assert.StrictEqual(true, " with "Assert.True("

* Revert a few changes where true/false was being compared to object

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/1296bc8386a7283e319ddf723282f16651f9ea5f
2019-07-23 17:05:15 -04:00
Geoff Kizer 5ab9a06717 fix race in request body completion
Commit migrated from https://github.com/dotnet/corefx/commit/29328b71b65abe3a199f0daf62f6ee71ca916e78
2019-07-23 13:19:35 -07:00
Geoff Kizer 439a7e2fc1 fix race with _requestBodyCancellationSource creation
Commit migrated from https://github.com/dotnet/corefx/commit/7394185c0fc8a52bebf384b933b07c1eb1fba360
2019-07-23 13:19:35 -07:00
Geoff Kizer 501a729169 rework SendHeadersAsync to address various issues
Commit migrated from https://github.com/dotnet/corefx/commit/2d5a9555d4888c82c653a9d7ad8368bc94adfdf2
2019-07-23 13:08:20 -07:00
Geoff Kizer 7390bf5db9 address review feedback
Commit migrated from https://github.com/dotnet/corefx/commit/752c1c8d8a01d22d52b1a320f9ed082049494045
2019-07-23 13:08:20 -07:00
Geoff Kizer 918413eb1d combine into single Cancel method on stream, and ensure Dispose cancels properly when response is not read to end
Commit migrated from https://github.com/dotnet/corefx/commit/5973d1ee6f3b616d2af2bc80527bdf8fe76ee210
2019-07-23 13:08:19 -07:00
Geoff Kizer 78f173fae4 rework shutdown handling
Commit migrated from https://github.com/dotnet/corefx/commit/0cd73b77e1f31d48037b56deb0206f4e56b4232e
2019-07-23 13:08:19 -07:00
Stephen Toub 47f8f6d47d Re-enable xunit warning 2003 (dotnet/corefx#39696)
* Replace "Assert.Equal(null, " with "Assert.Null("

* Replace "Assert.NotEqual(null, " with "Assert.NotNull("

* Replace "Assert.Same(null, " with "Assert.Null("

* Replace "Assert.StrictEqual(null, " with "Assert.Null("


Commit migrated from https://github.com/dotnet/corefx/commit/6de660a02e335eefebfcc3c81ecb0013e2a8148e
2019-07-23 15:49:33 -04:00
Eirik Tsarpalis 64b9306676 add license notice to new source files
Commit migrated from https://github.com/dotnet/corefx/commit/930dc991ca17b759d675c5015cd9c61bc8a725be
2019-07-23 14:59:02 +01:00
Stephen Toub fe4dd62491 Disable SendAsync_SuppressedGlobalStaticPropagationNoListenerAppCtx test (dotnet/corefx#39692)
Commit migrated from https://github.com/dotnet/corefx/commit/687f36489c19072cd5a19d48c099f53bbc871c4d
2019-07-23 09:09:51 -04:00
Stephen Toub c36edeac9b Re-enable ~20 xunit analyzers (dotnet/corefx#39671)
* Re-enable ~20 xunit analyzers

All but one of these had no associated warnings firing.  I fixed one warning to be able to re-enable another analyzer.

* Fix netfx build failures


Commit migrated from https://github.com/dotnet/corefx/commit/c60b8172cfcd1e7f0d8104872f279781fd288b68
2019-07-22 16:45:03 -04:00
Eirik Tsarpalis 573087767a stress server cleanups
Commit migrated from https://github.com/dotnet/corefx/commit/358267704c7f6dc7a214353be151ea83e37f8fc7
2019-07-22 13:03:17 +01:00
Eirik Tsarpalis c9fd4bb3cb fix build
Commit migrated from https://github.com/dotnet/corefx/commit/01d3536ed7d2677f92f50c6fa53ccf3d8ca2f28c
2019-07-22 11:20:21 +01:00
Stephen Toub 959dc0b302 Pass CancellationToken from Http2Connection.SendHeadersAsync to StartWriteAsync (dotnet/corefx#39635)
Commit migrated from https://github.com/dotnet/corefx/commit/9597dadcea747960aba304253370a17a2218208d
2019-07-20 20:47:17 -04:00
Eirik Tsarpalis fc30262411 regular comment
Commit migrated from https://github.com/dotnet/corefx/commit/4e9a2648cd0a5f116af2ecef5879866688b034cb
2019-07-20 00:15:59 +01:00
Eirik Tsarpalis a584fb5938 address feedback
Commit migrated from https://github.com/dotnet/corefx/commit/1c3de2a6aee80cf5c56d4ac118ee8f7157a8d112
2019-07-20 00:12:18 +01:00
Eirik Tsarpalis 1e165d8cff HttpStress: Segregate Client & Server into separate classes and support running standalone servers and clients
Commit migrated from https://github.com/dotnet/corefx/commit/371f8f2ae76308c7aad6b98eb209d06f485c2c94
2019-07-19 22:23:33 +01:00
Stephen Toub 371bcac4d5 Re-enable unicode host name test (dotnet/corefx#39606)
Site appears to be back up.

Commit migrated from https://github.com/dotnet/corefx/commit/1303d28179b4369cbfac43affd723fa6e0bc9554
2019-07-19 10:08:42 -04:00
Stephen Toub f9b59811ee Avoid "async void" tests (dotnet/corefx#39613)
Most of these are just because "async void" tests are rare and require special handling in xunit we needn't use.  But a few of these are plain wrong and were resulting in our not actually testing what we hoped to test.

Commit migrated from https://github.com/dotnet/corefx/commit/50d8c71bb6139f3c06dd820d6d757a095a9fe994
2019-07-19 10:07:15 -04:00
Stephen Toub d52a171d83 Change HttpStress app to highlight in red unchanged totals (dotnet/corefx#39576)
When no additional operations have completed since the last time status was output, highlight that in red.

Commit migrated from https://github.com/dotnet/corefx/commit/53dc908890102d3a888ba603a06266b85d3f4a9b
2019-07-17 17:53:30 -04:00
Stephen Toub 8707459544 Enable HttpStress to target http.sys in addition to Kestrel (dotnet/corefx#39553)
Commit migrated from https://github.com/dotnet/corefx/commit/d34317fbfb4963e7d42b96c36c314e2af829c3c7
2019-07-16 19:31:47 -04:00
Geoff Kizer 074a4f663d Merge pull request dotnet/corefx#39343 from geoffkizer/enableremotetestsforhttp2
ensure remote server HTTP2 tests are actually using HTTP2

Commit migrated from https://github.com/dotnet/corefx/commit/6ec67c15c3f213206e9cf66a2d69d274d3836e6b
2019-07-16 15:09:58 -07:00
Geoff Kizer a505c27add disable two slow tests that time out in CI
Commit migrated from https://github.com/dotnet/corefx/commit/3bf02562f062bdf0faf787f7cfe1d67539363ed5
2019-07-16 12:16:58 -07:00
Stephen Toub b0517c341f Fix HttpStress GET Parameters operation to respect Kestrel max line length (dotnet/corefx#39535)
* Fix HttpStress GET Parameters operation to respect Kestrel max line length

* Address PR feedback

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/bb0516a4f8d0c4d84eff2ba2a3ad0a4764ece9d2
2019-07-16 13:04:40 -04:00
Eirik Tsarpalis 7bfcebc9cb Merge pull request dotnet/corefx#39485 from eiriktsarpalis/httpstress-randomize-cancellation
HttpStress: Randomize cancellation of requests

Commit migrated from https://github.com/dotnet/corefx/commit/e15d8dcb334ebd896cd2b23359d95c2ca679fdd9
2019-07-16 15:58:47 +01:00
Eirik TsarpalisandStephen Toub aae6b7629d Update src/System.Net.Http/tests/StressTests/HttpStress/Program.cs
Co-Authored-By: Stephen Toub <[email protected]>

Commit migrated from https://github.com/dotnet/corefx/commit/ac239fc682f296c7eeb953f9ee26dd8a0351b6e4
2019-07-16 15:02:44 +01:00
Eirik TsarpalisandStephen Toub 2233d0d264 Update src/System.Net.Http/tests/StressTests/HttpStress/Program.cs
Co-Authored-By: Stephen Toub <[email protected]>

Commit migrated from https://github.com/dotnet/corefx/commit/6b2ddf6b59d62ea0a6720b731678f61fbbae7634
2019-07-16 14:59:34 +01:00
Eirik TsarpalisandStephen Toub 5ac7e30412 Update src/System.Net.Http/tests/StressTests/HttpStress/Program.cs
Co-Authored-By: Stephen Toub <[email protected]>

Commit migrated from https://github.com/dotnet/corefx/commit/35dec8a0cd2850ab9e0d5a97cfac4f458a3550a9
2019-07-16 14:59:22 +01:00
Eirik TsarpalisandStephen Toub 20da6cd7c7 Update src/System.Net.Http/tests/StressTests/HttpStress/Program.cs
Co-Authored-By: Stephen Toub <[email protected]>

Commit migrated from https://github.com/dotnet/corefx/commit/ae4dc79e57514eb9dfe4a8c0480691bd80731969
2019-07-16 14:59:12 +01:00
Eirik TsarpalisandStephen Toub 432e1d99dc Update src/System.Net.Http/tests/StressTests/HttpStress/Program.cs
Co-Authored-By: Stephen Toub <[email protected]>

Commit migrated from https://github.com/dotnet/corefx/commit/bee6f7fa2f76f5793a89027132b3ece7af82e30c
2019-07-16 14:58:32 +01:00
Stephen Toub 01d9b32ee3 Propagate abort exceptions from CreditManager.Dispose (dotnet/corefx#39520)
Currently, if an abort occurs, it disposes of credit managers, and if there's a waiter on that credit manager, that waiter propagates an ObjectDisposedException.  It should instead propagate whatever exception resulted from the abort.

Commit migrated from https://github.com/dotnet/corefx/commit/3c71b23c676c3538b33f4ae653cf6f85de77e44d
2019-07-16 07:07:22 -04:00
Eirik Tsarpalis fbd0e2a5b9 remove unused cli param
Commit migrated from https://github.com/dotnet/corefx/commit/7e595109699e301f31e3ffd3dda4aca9755c5c8a
2019-07-16 09:47:43 +01:00
Krzysztof Wicher 7fe6d63d3e Request-in-flight GOAWAY test (dotnet/corefx#39501)
* request-in-flight GOAWAY test

* apply feedback


Commit migrated from https://github.com/dotnet/corefx/commit/3eabd4c7f1cc439233e0f8bae3ba37a8d73b7e8d
2019-07-15 17:00:19 -07:00
Eirik Tsarpalis ea3b0b0da9 force cancellations to only trigger after request has been sent
Commit migrated from https://github.com/dotnet/corefx/commit/524af177fd3e39de47dae3394b516f8a02a6446d
2019-07-15 23:44:58 +01:00
Eirik Tsarpalis 026168ea5c dispose CancellationTokenSources
Commit migrated from https://github.com/dotnet/corefx/commit/58c85e29cfaa4b6bd8002a5c90c5262ca0cb29cf
2019-07-15 23:44:45 +01:00