WAS Liberty & Atmosphere 长轮询延迟 1 分钟

WAS Liberty & Atmosphere long-polling 1 min delay

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

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

通过从 maven central 下载 atmosphere-chat-2.3.3.war 可以很容易地重现该问题。重命名为 atmosphere-chat.war,将 application.js 更改为 transport = 'long-polling'。在 liberty dropins 文件夹中复制修改后的 war。启动服务器,前往http://localhost:9080/atmosphere-chat/

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

如果任何人都可以阐明一些问题。那就太好了。

设置

AtmosphereConfig.PROPERTY_USE_STREAM=false

暂时解决这个问题。