slow start, increasing number of blocks worked on per thread, reusing ciphers for multiple consecutive blocks

This commit is contained in:
Sebastian Stenzel
2015-08-02 00:37:26 +02:00
parent 6bbfacd794
commit ed7dc60f5e
8 changed files with 179 additions and 101 deletions
@@ -261,7 +261,8 @@ public class RangeRequestTest {
final HttpMethod getMethod = new GetMethod(testResourceUrl.toString());
getMethod.addRequestHeader("Range", "chunks=1-2");
final int getResponse = client.executeMethod(getMethod);
final byte[] response = getMethod.getResponseBody();
final byte[] response = new byte[fileContent.length];
IOUtils.read(getMethod.getResponseBodyAsStream(), response);
getMethod.releaseConnection();
Assert.assertEquals(416, getResponse);
Assert.assertArrayEquals(fileContent, response);