Skip to content

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

@TsaiQuinn

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);
大家有遇到吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions