Skip to content

ArrayIndexOutOfBoundsException: length=8192; index=8192 when using Http2 #6280

@mabeijianxi

Description

@mabeijianxi

We recently upgraded okhttp to 3.12.12 and opened http2. An exception occurred on the line.

java.lang.ArrayIndexOutOfBoundsException: length=8192; index=8192
okio.Buffer.okio.Buffer writeByte(int)(RQDSRC:1152)
okio.RealBufferedSink.okio.BufferedSink writeByte(int)(RQDSRC:124)
okhttp3.internal.http2.Http2Writer.void writeMedium(okio.BufferedSink,int)(RQDSRC:283)
okhttp3.internal.http2.Http2Writer.void frameHeader(int,int,byte,byte)(RQDSRC:271)
okhttp3.internal.http2.Http2Writer.void goAway(int,okhttp3.internal.http2.ErrorCode,byte[])(RQDSRC:238)
okhttp3.internal.http2.Http2Connection.void shutdown(okhttp3.internal.http2.ErrorCode)(RQDSRC:464)
okhttp3.internal.http2.Http2Connection.void close(okhttp3.internal.http2.ErrorCode,okhttp3.internal.http2.ErrorCode)(RQDSRC:480)
okhttp3.internal.http2.Http2Connection$ReaderRunnable.void execute()(RQDSRC:687)
okhttp3.internal.NamedRunnable.void run()(RQDSRC:32)
java.lang.Thread.run(Thread.java:764)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug in existing codeneeds infoMore information needed from reporter

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions