Skip to content

websocket server 接收字符串长度限制 #14

@fiytodie

Description

@fiytodie

用的文件转base64来传递一些配置文件,最大大概10M出头...默认配置无法接收完全
最后再NettyWebSocketServerInitializer这个类里面找到了
pipeline.addLast("aggregator", HttpObjectAggregator(65536))
这个方法控制长度
但是实测修改成5和2010241024,获取到的数据长度都不会变化,也就是参数根本没生效

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions