Netty websocket - ProxyHandler 不聚合分块的 httpresponse
Netty websocket - ProxyHandler do not aggregate chunked httpresponse
我正在尝试使用通过代理的 netty 4.1 进行 websocket 连接,当代理服务器以分块响应响应时,ProxyHandler 处理 headers,但将内容(在下一条消息中出现)传递给 SslHandler,它是接下来,我得到 NotSslRecordException。有没有办法让 ProxyHandler 使用 HttpObjectAggregator 或以其他方式正确处理它?
我刚刚将 HttpObjectAggregator 添加到管道,然后在与代理建立连接时将其删除。
我正在尝试使用通过代理的 netty 4.1 进行 websocket 连接,当代理服务器以分块响应响应时,ProxyHandler 处理 headers,但将内容(在下一条消息中出现)传递给 SslHandler,它是接下来,我得到 NotSslRecordException。有没有办法让 ProxyHandler 使用 HttpObjectAggregator 或以其他方式正确处理它?
我刚刚将 HttpObjectAggregator 添加到管道,然后在与代理建立连接时将其删除。