src/java.net.http/share/classes/jdk/internal/net/http/frame/SettingsFrame.java
branchhttp-client-branch
changeset 56812 a6180efe1d58
parent 56795 03ece2518428
child 56833 be0819373531
equal deleted inserted replaced
56811:7c86bd1e9a43 56812:a6180efe1d58
   159                 parameters[i] = updated.parameters[i];
   159                 parameters[i] = updated.parameters[i];
   160             }
   160             }
   161         }
   161         }
   162     }
   162     }
   163 
   163 
       
   164     public static final int DEFAULT_INITIAL_WINDOW_SIZE = 64 * K -1;
       
   165     public static final int DEFAULT_HEADER_TABLE_SIZE = 4 * K;
       
   166     public static final int DEFAULT_MAX_CONCURRENT_STREAMS = 100;
       
   167     public static final int DEFAULT_MAX_FRAME_SIZE = 16 * K;
       
   168 
   164     public static SettingsFrame getDefaultSettings() {
   169     public static SettingsFrame getDefaultSettings() {
   165         SettingsFrame f = new SettingsFrame();
   170         SettingsFrame f = new SettingsFrame();
   166         // TODO: check these values
   171         // TODO: check these values
   167         f.setParameter(ENABLE_PUSH, 1);
   172         f.setParameter(ENABLE_PUSH, 1);
   168         f.setParameter(HEADER_TABLE_SIZE, 4 * K);
   173         f.setParameter(HEADER_TABLE_SIZE, DEFAULT_HEADER_TABLE_SIZE);
   169         f.setParameter(MAX_CONCURRENT_STREAMS, 100);
   174         f.setParameter(MAX_CONCURRENT_STREAMS, DEFAULT_MAX_CONCURRENT_STREAMS);
   170         f.setParameter(INITIAL_WINDOW_SIZE, 64 * K - 1);
   175         f.setParameter(INITIAL_WINDOW_SIZE, DEFAULT_INITIAL_WINDOW_SIZE);
   171         f.setParameter(MAX_FRAME_SIZE, 16 * K);
   176         f.setParameter(MAX_FRAME_SIZE, DEFAULT_MAX_FRAME_SIZE);
   172         return f;
   177         return f;
   173     }
   178     }
   174 }
   179 }