-
Notifications
You must be signed in to change notification settings - Fork 526
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
在@OnBinary传的数据比较大时连接会断掉 #21
Comments
没有现成的配置可以直接设置这个值 如果需要限制session的最大大小,可以很简单的实现 |
我是指如果我把文件流在@onbinary中传递时太大的文件流会直接断掉,不是指限制连接数,可能我之前的表述有问题把 |
如果是server有限制,会报错,可以看下报错信息. 另外,具体文件大小是多少 |
这是server端的报错信息:io.netty.handler.codec.CorruptedFrameException: Max frame length of 65536 has been exceeded |
好的,了解. |
是的,谢谢,确实是可以在那个初始化的时候设置这个最大帧载荷长度,如果可以灵活配置的话就更好了 |
0.7.3版本中增加了maxFramePayloadLength属性,进行配置即可. |
好的,谢谢 |
有没有可以设置session最大大小的方法,tomcat的websocket是有这个方法的
The text was updated successfully, but these errors were encountered: