問題描述:工具
在HTTP鏈接下,chunk data經過 response正確返回。在https鏈接下,沒有response返回。開發工具
問題緣由:firefox
public class HttpServerPipelineFactory implements ChannelPipelineFactory {
public ChannelPipeline getPipeline() throws Exception {
pipeline.addLast("chunkedWriter", playHandler.chunkedWriteHandler);ip
public class SslHttpServerPipelineFactory implements ChannelPipelineFactory {
public ChannelPipeline getPipeline() throws Exception {
pipeline.addLast("chunkedWriter", new ChunkedWriteHandler());ssl
http下,chunkedWriter是playHandler.chunkedWriteHandler。而https的時候,chunkedWriter是新規的,與playHandler沒有關聯,致使playHandler refresh的時候,chunkedWriter是空的,直接返回而沒有flush response.開發
若是使用firefox的開發工具查看的話,能夠確認到沒有返回response.get
對應方法:it
經過分析緣由,咱們能夠找到解決方法。pip
pipeline.addLast("chunkedWriter", sslplayHandler.chunkedWriteHandler);io