Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getMaxFrameSize (0.1 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/SettingsTest.kt

        settings[Settings.MAX_CONCURRENT_STREAMS] = 75
        assertThat(settings.getMaxConcurrentStreams()).isEqualTo(75)
        settings.clear()
        assertThat(settings.getMaxFrameSize(16384)).isEqualTo(16384)
        settings[Settings.MAX_FRAME_SIZE] = 16777215
        assertThat(settings.getMaxFrameSize(16384)).isEqualTo(16777215)
        assertThat(settings.getMaxHeaderListSize(-1)).isEqualTo(-1)
        settings[Settings.MAX_HEADER_LIST_SIZE] = 16777215
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Settings.kt

      }
    
      fun getMaxConcurrentStreams(): Int {
        val bit = 1 shl MAX_CONCURRENT_STREAMS
        return if (bit and set != 0) values[MAX_CONCURRENT_STREAMS] else Int.MAX_VALUE
      }
    
      fun getMaxFrameSize(defaultValue: Int): Int {
        val bit = 1 shl MAX_FRAME_SIZE
        return if (bit and set != 0) values[MAX_FRAME_SIZE] else defaultValue
      }
    
      fun getMaxHeaderListSize(defaultValue: Int): Int {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

      @Throws(IOException::class)
      fun applyAndAckSettings(peerSettings: Settings) {
        this.withLock {
          if (closed) throw IOException("closed")
          this.maxFrameSize = peerSettings.getMaxFrameSize(maxFrameSize)
          if (peerSettings.headerTableSize != -1) {
            hpackWriter.resizeHeaderTable(peerSettings.headerTableSize)
          }
          frameHeader(
            streamId = 0,
            length = 0,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

    import okio.BufferedSource
    import okio.ByteString
    import okio.Source
    import okio.Timeout
    
    /**
     * Reads HTTP/2 transport frames.
     *
     * This implementation assumes we do not send an increased [frame][Settings.getMaxFrameSize] to the
     * peer. Hence, we expect all frames to have a max length of [Http2.INITIAL_MAX_FRAME_SIZE].
     */
    class Http2Reader(
      /** Creates a frame reader with max header table size of 4096. */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt

        settings[Settings.MAX_FRAME_SIZE] = newMaxFrameSize
        val connection = connectWithSettings(true, settings)
    
        // verify the peer's settings were read and applied.
        assertThat(connection.peerSettings.getMaxFrameSize(-1)).isEqualTo(newMaxFrameSize)
        assertThat(connection.writer.maxDataLength()).isEqualTo(newMaxFrameSize)
      }
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 75.4K bytes
    - Viewed (0)
Back to top