Skip to content

Commit a99190c

Browse files
Disable offending H/3 op causing server errors (#58541)
Co-authored-by: ManickaP <mapichov@microsoft.com>
1 parent c300b09 commit a99190c

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

eng/pipelines/libraries/stress/http.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
5151
- bash: |
5252
cd '$(httpStressProject)'
53-
export HTTPSTRESS_CLIENT_ARGS="$HTTPSTRESS_CLIENT_ARGS -http 3.0"
53+
export HTTPSTRESS_CLIENT_ARGS="$HTTPSTRESS_CLIENT_ARGS -http 3.0 -xops 10"
5454
export HTTPSTRESS_SERVER_ARGS="$HTTPSTRESS_SERVER_ARGS -http 3.0"
5555
docker-compose up --abort-on-container-exit --no-color
5656
displayName: Run HttpStress - HTTP 3.0

src/libraries/System.Net.Http/tests/StressTests/HttpStress/ClientOperations.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -508,12 +508,6 @@ public static (string name, Func<RequestContext, Task> operation)[] Operations =
508508

509509
private static void ValidateStatusCode(HttpResponseMessage m, HttpStatusCode expectedStatus = HttpStatusCode.OK)
510510
{
511-
// [ActiveIssue("https://github.com/dotnet/runtime/issues/55261")]
512-
if (m.StatusCode == HttpStatusCode.InternalServerError)
513-
{
514-
throw new Exception("IGNORE");
515-
}
516-
517511
if (m.StatusCode != expectedStatus)
518512
{
519513
throw new Exception($"Expected status code {expectedStatus}, got {m.StatusCode}");

src/libraries/System.Net.Http/tests/StressTests/HttpStress/StressClient.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,6 @@ async Task RunWorker(int taskNum)
209209
{
210210
_aggregator.RecordCancellation(opIndex, stopwatch.Elapsed);
211211
}
212-
catch (Exception e) when (e.Message == "IGNORE")
213-
{
214-
// [ActiveIssue("https://github.com/dotnet/runtime/issues/55261")]
215-
// See ClientOperations.ValidateStatusCode
216-
}
217212
catch (Exception e)
218213
{
219214
_aggregator.RecordFailure(e, opIndex, stopwatch.Elapsed, requestContext.IsCancellationRequested, taskNum: taskNum, iteration: i);

0 commit comments

Comments
 (0)