【发布时间】:2012-04-08 02:16:21
【问题描述】:
我正在尝试在 hornetq 2.2.5 发行版中运行 netty stomp websockets 示例,但它不适用于 Chrome 最新版本。 Chrome 在 javascript 控制台中显示以下错误 -
Error during WebSocket handshake: 'Sec-WebSocket-Accept' header is missing
在论坛上阅读似乎表明这与 Netty 本身有关。我知道 chrome 太快了,无法适应不断变化的 websockets 协议,因此它抱怨没有从服务器返回标头。带有 hornetq 发行版的 Netty 版本似乎是 3.2.3。如果这仅与 Netty 有关?这可以通过使用具有相同 hornetq 分布的更高版本的 Netty 来解决吗?
【问题讨论】:
-
我不是 hornetq 专家,但您可能想尝试升级到 netty-3.3.1.Final 看看是否有帮助
-
确实尝试过..通过更换罐子。不用找了。似乎 hornetq 有一个 websockethandler,它仍然在旧版本的协议上 [link]grepcode.com/file/repository.jboss.org/nexus/content/…
标签: google-chrome websocket netty hornetq