Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 111 for frame (0.2 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Settings.kt

        /** HTTP/2: The peer must not send a PUSH_PROMISE frame when this is 0. */
        const val ENABLE_PUSH = 2
    
        /** Sender's maximum number of concurrent streams. */
        const val MAX_CONCURRENT_STREAMS = 4
    
        /** HTTP/2: Size in bytes of the largest frame payload the sender will accept. */
        const val MAX_FRAME_SIZE = 5
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/http2/Http2Test.kt

        writeMedium(frame, (headerBlock.size / 2).toInt() + paddingLength + 1)
        frame.writeByte(Http2.TYPE_HEADERS)
        frame.writeByte(FLAG_PADDED)
        frame.writeInt(expectedStreamId and 0x7fffffff)
        frame.writeByte(paddingLength)
        frame.write(headerBlock, headerBlock.size / 2)
        frame.write(padding)
    
        // Write the continuation frame, specifying no more frames are expected.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

    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. */
      private val source: BufferedSource,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  4. docs/contribute/concurrency.md

    Blocking APIs may be inefficient because you hold a thread idle while waiting on the network. Threads are expensive because they have both a memory overhead and a context-switching overhead.
    
    #### Framed protocols
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

            }
    
            // Write a frame.
            val length = (end - start).toInt()
            outputStream.write(outBytes, start.toInt(), length)
    
            // If the last frame was truncated, immediately close the connection.
            if (truncated) {
              socket.close()
            }
          } else {
            // read a frame
            val inFrame = InFrame(i, reader)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

          reason: String,
        )
      }
    
      /**
       * Process the next protocol frame.
       *
       *  * If it is a control frame this will result in a single call to [FrameCallback].
       *  * If it is a message frame this will result in a single call to [FrameCallback.onReadMessage].
       *    If the message spans multiple frames, each interleaved control frame will result in a
       *    corresponding call to [FrameCallback].
       */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      ): Boolean {
        // Don't send new frames after we've failed or enqueued a close frame.
        if (failed || enqueuedClose) return false
    
        // If this frame overflows the buffer, reject it and close the web socket.
        if (queueSize + data.size > MAX_QUEUE_SIZE) {
          close(CLOSE_CLIENT_GOING_AWAY, null)
          return false
        }
    
        // Enqueue the message frame.
        queueSize += data.size.toLong()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  8. utils/utils.go

    	len := runtime.Callers(3, pcs[:])
    	frames := runtime.CallersFrames(pcs[:len])
    	for i := 0; i < len; i++ {
    		// second return value is "more", not "ok"
    		frame, _ := frames.Next()
    		if (!strings.HasPrefix(frame.File, gormSourceDir) ||
    			strings.HasSuffix(frame.File, "_test.go")) && !strings.HasSuffix(frame.File, ".gen.go") {
    			return string(strconv.AppendInt(append([]byte(frame.File), ':'), int64(frame.Line), 10))
    		}
    	}
    
    	return ""
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 22 06:43:02 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

      /** Byte 0 reserved flag 3. Must be 0 unless negotiated otherwise. */
      internal const val B0_FLAG_RSV3 = 16
    
      /** Byte 0 mask for the frame opcode. */
      internal const val B0_MASK_OPCODE = 15
    
      /** Flag in the opcode which indicates a control frame. */
      internal const val OPCODE_FLAG_CONTROL = 8
    
      /**
       * Byte 1 flag for whether the payload data is masked.
       *
       * If this flag is set, the next four
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  10. api/go1.7.txt

    pkg runtime, func CallersFrames([]uintptr) *Frames
    pkg runtime, func KeepAlive(interface{})
    pkg runtime, func SetCgoTraceback(int, unsafe.Pointer, unsafe.Pointer, unsafe.Pointer)
    pkg runtime, method (*Frames) Next() (Frame, bool)
    pkg runtime, type Frame struct
    pkg runtime, type Frame struct, Entry uintptr
    pkg runtime, type Frame struct, File string
    pkg runtime, type Frame struct, Func *Func
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Jun 28 15:08:11 GMT 2016
    - 13.6K bytes
    - Viewed (0)
Back to top