Home
last modified time | relevance | path

Searched refs:peerSettings (Results 1 – 7 of 7) sorted by relevance

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DFramedConnection.java121 final Settings peerSettings = new Settings(); field in FramedConnection
161 peerSettings.set(Settings.INITIAL_WINDOW_SIZE, 0, 65535); in FramedConnection()
162 peerSettings.set(Settings.MAX_FRAME_SIZE, 0, Http2.INITIAL_MAX_FRAME_SIZE); in FramedConnection()
169 bytesLeftInWriteWindow = peerSettings.getInitialWindowSize(DEFAULT_INITIAL_WINDOW_SIZE); in FramedConnection()
213 return peerSettings.getMaxConcurrentStreams(Integer.MAX_VALUE); in maxConcurrentStreams()
716 int priorWriteWindowSize = peerSettings.getInitialWindowSize(DEFAULT_INITIAL_WINDOW_SIZE); in settings()
717 if (clearPrevious) peerSettings.clear(); in settings()
718 peerSettings.merge(newSettings); in settings()
722 int peerInitialWindowSize = peerSettings.getInitialWindowSize(DEFAULT_INITIAL_WINDOW_SIZE); in settings()
748 private void ackSettingsLater(final Settings peerSettings) { in ackSettingsLater() argument
[all …]
DFrameWriter.java29 void ackSettings(Settings peerSettings) throws IOException; in ackSettings() argument
DHttp2.java384 @Override public synchronized void ackSettings(Settings peerSettings) throws IOException { in ackSettings() argument
386 this.maxFrameSize = peerSettings.getMaxFrameSize(maxFrameSize); in ackSettings()
DFramedStream.java83 connection.peerSettings.getInitialWindowSize(DEFAULT_INITIAL_WINDOW_SIZE); in FramedStream()
DSpdy3.java304 @Override public void ackSettings(Settings peerSettings) { in ackSettings() argument
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DSpdy3ConnectionTest.java283 assertEquals(10, connection.peerSettings.getMaxConcurrentStreams(-1));
309 assertEquals(100, connection.peerSettings.getUploadBandwidth(-1));
310 assertEquals(PERSIST_VALUE, connection.peerSettings.flags(Settings.UPLOAD_BANDWIDTH));
311 assertEquals(400, connection.peerSettings.getDownloadBandwidth(-1));
312 assertEquals(0, connection.peerSettings.flags(Settings.DOWNLOAD_BANDWIDTH));
313 assertEquals(500, connection.peerSettings.getDownloadRetransRate(-1));
314 assertEquals(PERSIST_VALUE, connection.peerSettings.flags(Settings.DOWNLOAD_RETRANS_RATE));
315 assertEquals(600, connection.peerSettings.getMaxConcurrentStreams(-1));
316 assertEquals(PERSIST_VALUE, connection.peerSettings.flags(Settings.MAX_CONCURRENT_STREAMS));
342 assertEquals(-1, connection.peerSettings.getUploadBandwidth(-1));
[all …]
DHttp2ConnectionTest.java118 assertEquals(65535, connection.peerSettings.getInitialWindowSize(-1));
133 assertEquals(3368, connection.peerSettings.getInitialWindowSize(DEFAULT_INITIAL_WINDOW_SIZE));
147 assertEquals(0, connection.peerSettings.getHeaderTableSize());
161 assertFalse(connection.peerSettings.getEnablePush(true));
172 assertEquals(newMaxFrameSize, connection.peerSettings.getMaxFrameSize(-1));