小编use*_*427的帖子

亚马逊ec2上的Websockets连接失败

我有一个运行大气框架的netty服务器,用于通过websockets实时通知系统.

该系统在我的本地机器上运行完美,但是当我在EC2上部署时,它似乎不起作用.我可以telnet到远程Netty服务器.可以访问服务器并在EC2上打开端口

Firefox抛出以下错误

Using URL: ws://beta.myapp.com:2880/myhandle?id=1&name=Chinese_food_rule_2&    X-Atmosphere-tracking-id=35490c47-59d6-abf6-36fa-431aa340d90a&X-Atmosphere-Framework=0.9&X-Atmosphere-Transport=websocket&X-Cache-Date=0&Content-Type=application/json

Websocket error, reason: undefined

Firefox can't establish a connection to the server at ws://beta.myapp.com:2880/myhandle?id=1&name=Chinese_food_rule_2&X-Atmosphere-tracking-id=35490c47-59d6-abf6-36fa-431aa340d90a&X-Atmosphere-Framework=0.9&X-Atmosphere-Transport=websocket&X-Cache-Date=0&Content-Type=application/json.

Websocket closed, reason: Connection was closed abnormally (that is, with no close frame being sent).
Run Code Online (Sandbox Code Playgroud)

服务器甚至没有得到请求,这让我觉得这是一些我不知道的EC2网络套接字问题.

amazon-ec2 websocket atmosphere netty

12
推荐指数
3
解决办法
1万
查看次数

标签 统计

amazon-ec2 ×1

atmosphere ×1

netty ×1

websocket ×1