PUSH-000183:处理程序在缓冲区中没有留空间

时间:2016-04-27 12:19:22

标签: push-diffusion

我一直在服务器日志中看到以下警告和堆栈跟踪,并想知道出了什么问题以及如何解决它。我检查了the designation PUSH-000183,但它只是说“消息通道上发生了通信错误。”

2016-04-20 13:37:42.452|WARN|Diffusion: InboundThreadPool Thread_1|PUSH-000183|Message channel error: 'NIOBufferedChannel@571714020[connected local=/10.96.130.21:8070 remote=/10.96.1.36:24832] : Closed(UNEXPECTED_ERROR) ServerInboundTask@542477fd HTTPConnectionHandler@2641ae33[partial request - more expected]: handler left no space in buffer ' caused by 'ServerInboundTask@542477fd HTTPConnectionHandler@2641ae33[partial request - more expected]: handler left no space in buffer'.|com.pushtechnology.diffusion.io.message.MessageChannelException
com.pushtechnology.diffusion.io.message.MessageChannelException: ServerInboundTask@542477fd HTTPConnectionHandler@2641ae33[partial request - more expected]: handler left no space in buffer
at com.pushtechnology.diffusion.io.nio.NIOBufferedChannel.logClosingException(NIOBufferedChannel.java:647)
at com.pushtechnology.diffusion.io.nio.NIOBufferedChannel.logAndClose(NIOBufferedChannel.java:613)
at com.pushtechnology.diffusion.io.nio.AbstractReadSelector$InboundTask.close(AbstractReadSelector.java:410)
at com.pushtechnology.diffusion.io.nio.AbstractReadSelector$InboundTask.run(AbstractReadSelector.java:351)
at com.pushtechnology.diffusion.threads.FastThreadPool$PoolWorker.run(FastThreadPool.java:783)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.IllegalStateException: ServerInboundTask@542477fd HTTPConnectionHandler@2641ae33[partial request - more expected]: handler left no space in buffer
at com.pushtechnology.diffusion.io.nio.AbstractReadSelector$InboundTask.run(AbstractReadSelector.java:324)

这仅限于使用XHR连接的客户端还是websockets也会受到影响?

1 个答案:

答案 0 :(得分:1)

当客户端向更大的服务器发送消息时,会发生这种情况 比Connectors.xml中配置的输入缓冲区大小。

它会断开客户端,如果客户端configured to do so,则可能会重新连接。无论传输如何,这都可能发生在任何客户端 (XHR,Websockets等)。

您需要将Connectors.xml中的输入缓冲区大小增加到 匹配您期望的最大消息。例如,如果你是 发送最大256K的消息,您可以使用以下内容 配置:

<socket-conditioning>
     <!-- If this value is less than max-message-size defined in 
          Server.xml, it will be
          overwritten by the latter. -->
     <input-buffer-size>256k</input-buffer-size>
     <!-- Other config... -->
</socket-conditioning>