【问题标题】:WAS Liberty & Atmosphere long-polling 1 min delayWAS Liberty & Atmosphere 长轮询延迟 1 分钟
【发布时间】:2015-07-09 11:59:07
【问题描述】:

我一直在 WAS Liberty 上测试 Atmosphere,在 Liberty 8.5.5.4 上一切正常。

当我尝试升级到 Liberty 8.5.5.5 或 8.5.5.6 时,初始连接有 1 分钟延迟。

可以通过从 maven Central 下载大气聊天 2.3.3.war 轻松复制该问题。重命名为大气聊天.war,将application.js更改为transport = 'long-polling'。将修改后的战争复制到 liberty dropins 文件夹中。启动服务器,去http://localhost:9080/atmosphere-chat/

我认为这可能是 Liberty 中异步处理的一个错误,但也许 Atmosphere 或 IBM 的人更清楚。我不太清楚,所以我暂时停留在 8.5.5.4 上。

如果有人能解释一下。会很棒的。

【问题讨论】:

  • 我已经尝试将 添加到 liberty server.xml
  • 我也刚刚尝试过使用 Liberty 8.5.5.7。同样的问题,第一次连接需要60秒。有什么地方可以向 IBM 提交错误?
  • 你能在 30 秒内得到一个 javacore 并粘贴堆栈跟踪吗?和/或可能是 Web 容器/TCP 通道跟踪?
  • 紧随其后有 2 个 30 秒延迟:18:55:03:581 BST] 00000047 HttpServiceCo

标签: long-polling atmosphere websphere-liberty


【解决方案1】:

设置

AtmosphereConfig.PROPERTY_USE_STREAM=false

暂时解决这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-08-01
    • 2013-01-04
    • 1970-01-01
    • 1970-01-01
    • 2021-07-31
    • 1970-01-01
    • 2011-12-15
    相关资源
    最近更新 更多