Home
last modified time | relevance | path

Searched refs:maxFrameSize (Results 1 – 15 of 15) sorted by relevance

/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/
DHttp2.java370 private int maxFrameSize; field in Http2.Writer
378 this.maxFrameSize = INITIAL_MAX_FRAME_SIZE; in Writer()
388 this.maxFrameSize = peerSettings.getMaxFrameSize(maxFrameSize); in ackSettings()
433 int length = (int) Math.min(maxFrameSize - 4, byteCount); in pushPromise()
448 int length = (int) Math.min(maxFrameSize, byteCount); in headers()
460 int length = (int) Math.min(maxFrameSize, byteCount); in writeContinuationFrames()
481 return maxFrameSize; in maxDataLength()
570 if (length > maxFrameSize) { in frameHeader()
571 throw illegalArgument("FRAME_SIZE_ERROR length > %d: %d", maxFrameSize, length); in frameHeader()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DHttp2.java368 private int maxFrameSize; field in Http2.Writer
376 this.maxFrameSize = INITIAL_MAX_FRAME_SIZE; in Writer()
386 this.maxFrameSize = peerSettings.getMaxFrameSize(maxFrameSize); in ackSettings()
431 int length = (int) Math.min(maxFrameSize - 4, byteCount); in pushPromise()
446 int length = (int) Math.min(maxFrameSize, byteCount); in headers()
458 int length = (int) Math.min(maxFrameSize, byteCount); in writeContinuationFrames()
479 return maxFrameSize; in maxDataLength()
568 if (length > maxFrameSize) { in frameHeader()
569 throw illegalArgument("FRAME_SIZE_ERROR length > %d: %d", maxFrameSize, length); in frameHeader()
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/framed/
DHttp2.java374 private int maxFrameSize; field in Http2.Writer
382 this.maxFrameSize = INITIAL_MAX_FRAME_SIZE; in Writer()
392 this.maxFrameSize = peerSettings.getMaxFrameSize(maxFrameSize); in ackSettings()
437 int length = (int) Math.min(maxFrameSize - 4, byteCount); in pushPromise()
452 int length = (int) Math.min(maxFrameSize, byteCount); in headers()
464 int length = (int) Math.min(maxFrameSize, byteCount); in writeContinuationFrames()
485 return maxFrameSize; in maxDataLength()
574 if (length > maxFrameSize) { in frameHeader()
575 throw illegalArgument("FRAME_SIZE_ERROR length > %d: %d", maxFrameSize, length); in frameHeader()
/external/grpc-grpc-java/alts/src/main/java/io/grpc/alts/internal/
DAltsFraming.java120 Producer(int maxFrameSize) { in Producer() argument
121 buffer = ByteBuffer.allocate(maxFrameSize); in Producer()
123 Preconditions.checkArgument(maxFrameSize > getFramePrefixLength() + getFrameSuffixLength()); in Producer()
DNettyTsiHandshaker.java137 TsiFrameProtector createFrameProtector(int maxFrameSize, ByteBufAllocator alloc) { in createFrameProtector() argument
139 return internalHandshaker.createFrameProtector(maxFrameSize, alloc); in createFrameProtector()
DAltsTsiHandshaker.java175 public TsiFrameProtector createFrameProtector(int maxFrameSize, ByteBufAllocator alloc) { in createFrameProtector() argument
181 return new AltsTsiFrameProtector(maxFrameSize, new AltsChannelCrypter(key, isClient), alloc); in createFrameProtector()
DTsiHandshaker.java99 TsiFrameProtector createFrameProtector(int maxFrameSize, ByteBufAllocator alloc); in createFrameProtector() argument
/external/syzkaller/vendor/golang.org/x/net/http2/
Dwrite.go160 const maxFrameSize = 16384
165 if len(frag) > maxFrameSize {
166 frag = frag[:maxFrameSize]
Dwritesched.go112 if wr.stream.sc.maxFrameSize < allowed {
113 allowed = wr.stream.sc.maxFrameSize
Dtransport.go175 maxFrameSize uint32 member
538 maxFrameSize: 16 << 10, // spec default
676 size := cc.maxFrameSize
837 werr := cc.writeHeaders(cs.ID, endStream, int(cc.maxFrameSize), hdrs)
993 func (cc *ClientConn) writeHeaders(streamID uint32, endStream bool, maxFrameSize int, hdrs []byte) …
997 if len(chunk) > maxFrameSize {
998 chunk = chunk[:maxFrameSize]
1116 maxFrameSize := int(cc.maxFrameSize)
1125 err = cc.writeHeaders(cs.ID, true, maxFrameSize, trls)
1159 if take > int32(cc.maxFrameSize) {
[all …]
Dframe.go400 maxFrameSize = 1<<24 - 1 const
441 fr.SetMaxReadFrameSize(maxFrameSize)
450 if v > maxFrameSize {
451 v = maxFrameSize
Dserver.go152 if v := s.MaxReadFrameSize; v >= minMaxFrameSize && v <= maxFrameSize {
349 maxFrameSize: initialMaxFrameSize,
481 maxFrameSize int32 member
1517 sc.maxFrameSize = int32(s.Val) // the maximum valid s.Val is < 2^31
/external/grpc-grpc-java/alts/src/test/java/io/grpc/alts/internal/
DFakeTsiHandshaker.java216 public TsiFrameProtector createFrameProtector(int maxFrameSize, ByteBufAllocator alloc) { in createFrameProtector() argument
221 return new AltsTsiFrameProtector(maxFrameSize, new AltsChannelCrypter(key, isClient), alloc); in createFrameProtector()
DAltsProtocolNegotiatorTest.java471 public TsiFrameProtector createFrameProtector(int maxFrameSize, ByteBufAllocator alloc) { in createFrameProtector() argument
473 new InterceptingProtector(delegate.createFrameProtector(maxFrameSize, alloc)); in createFrameProtector()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DMessageFramerTest.java401 ByteWritableBuffer(int maxFrameSize) {
402 data = new byte[maxFrameSize];