changeset 714:875bc31cea61

Nc file - file size improvements
author Devel 2
date Wed, 29 Nov 2017 14:22:58 +0100
parents c25ef52d9d7c
children 0029b16967c6
files stress-tester/src/main/java/com/passus/st/reader/nc/NcDataBlockWriter.java stress-tester/src/main/java/com/passus/st/reader/nc/NcHttpDataUtils.java
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/reader/nc/NcDataBlockWriter.java	Wed Nov 29 13:28:12 2017 +0100
+++ b/stress-tester/src/main/java/com/passus/st/reader/nc/NcDataBlockWriter.java	Wed Nov 29 14:22:58 2017 +0100
@@ -23,7 +23,7 @@
  */
 public class NcDataBlockWriter implements DataBlockWriter<NcDataBlock> {
 
-    private static final int DEFAULT_MAX_SEGMENT_BLOCKS = 256;
+    private static final int DEFAULT_MAX_SEGMENT_BLOCKS = 1024;
 
     private static final int DEFAULT_BYTE_BUFFER = 64 * 1024;
 
--- a/stress-tester/src/main/java/com/passus/st/reader/nc/NcHttpDataUtils.java	Wed Nov 29 13:28:12 2017 +0100
+++ b/stress-tester/src/main/java/com/passus/st/reader/nc/NcHttpDataUtils.java	Wed Nov 29 14:22:58 2017 +0100
@@ -62,6 +62,18 @@
         codeToHeader.put((byte) 28, HttpHeaders.VARY);
         codeToHeader.put((byte) 29, HttpHeaders.VIA);
         codeToHeader.put((byte) 30, HttpHeaders.WWW_AUTHENTICATE);
+        codeToHeader.put((byte) 31, HttpHeaders.CONNECTION);
+        codeToHeader.put((byte) 32, HttpHeaders.IF_NONE_MATCH);
+        codeToHeader.put((byte) 33, HttpHeaders.IF_MODIFIED_SINCE);
+        codeToHeader.put((byte) 34, HttpHeaders.UPGRADE_INSECURE_REQUESTS);
+        codeToHeader.put((byte) 35, HttpHeaders.DNT);
+        codeToHeader.put((byte) 36, HttpHeaders.PRAGMA);
+        codeToHeader.put((byte) 37, HttpHeaders.P3P);
+        codeToHeader.put((byte) 38, HttpHeaders.X_XSS_PROTECTION);
+        codeToHeader.put((byte) 39, HttpHeaders.X_CONTENT_TYPE_OPTIONS);
+        codeToHeader.put((byte) 40, HttpHeaders.CACHE_CONTROL);
+        codeToHeader.put((byte) 41, HttpHeaders.X_REQUESTED_WITH);
+        codeToHeader.put((byte) 42, HttpHeaders.LAST_MODIFIED);
 
         Map<ByteString, Byte> headerToCode = new HashMap<>(codeToHeader.size());
         codeToHeader.forEach((code, header) -> headerToCode.put(header, code));