File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
modules/repository-s3/src/test/java/org/elasticsearch/repositories/s3 Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -572,16 +572,16 @@ public void handle(HttpExchange exchange) throws IOException {
572
572
),
573
573
-1
574
574
);
575
+ exchange .getResponseBody ().flush ();
575
576
} else if (randomBoolean ()) {
576
577
final var bytesSent = sendIncompleteContent (exchange , bytes );
577
578
if (bytesSent < meaningfulProgressBytes ) {
578
579
failuresWithoutProgress += 1 ;
579
- } else {
580
- exchange .getResponseBody ().flush ();
581
580
}
582
581
} else {
583
582
failuresWithoutProgress += 1 ;
584
583
}
584
+ exchange .getResponseBody ().flush ();
585
585
exchange .close ();
586
586
}
587
587
}
@@ -626,6 +626,7 @@ public void handle(HttpExchange exchange) throws IOException {
626
626
failureCount += 1 ;
627
627
Streams .readFully (exchange .getRequestBody ());
628
628
sendIncompleteContent (exchange , bytes );
629
+ exchange .getResponseBody ().flush ();
629
630
exchange .close ();
630
631
}
631
632
}
You can’t perform that action at this time.
0 commit comments