Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TsaiQuinn opened this issue Apr 13, 2018 · 0 comments
Open

Comments

@TsaiQuinn
Copy link

TsaiQuinn commented Apr 13, 2018

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

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

No branches or pull requests

1 participant