240
个人博客地址: olook.me

comet4j推送 405/500 JSON转换异常

因为Comet4J工作在NIO方式下,所以我们需要调整服务器连接器配置,更换为NOI连接器。 打开server.xml文件将找到原先的连接器配置:

  <Connector executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />


替换为:
  <Connector URIEncoding="UTF8" connectionTimeout="20000" port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol" redirectPort="8443"/>

posted @ 2016-09-26 08:56  VayCi  阅读(...)  评论(...编辑  收藏