Skip to content

服务端读取object时报Unable to read object larger than read buffer #144

Description

@TsaiQuinn

默认的buffer2048 ,读取的时候报Unable to read object larger than read buffer异常,
qq 20180413204456
当我把buffersize 扩大时,读取的结果为null,
qq 20180413205224
不管怎么样都会走到这里
if (currentObjectLength <= 0) throw new KryoNetException("Invalid object length: " + currentObjectLength);
if (currentObjectLength > readBuffer.capacity())
throw new KryoNetException("Unable to read object larger than read buffer: " + currentObjectLength);
大家有遇到吗?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions