我有一個netty服務器通過websockets爲實時通知系統運行氣氛框架。亞馬遜EC2上的Websockets連接失敗
該系統在我的本地機器上完美工作,但是當我在EC2上部署它時,它似乎不起作用。雖然我可以遠程登錄遠程Netty服務器。該服務器是可以訪問的端口都在EC2開放
火狐引發以下錯誤
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).
服務器甚至沒有得到一個請求,這使我認爲,這是一些EC2網絡插座疑難雜症,我我不知道。
你有沒有設置防火牆,讓2880打開? – Veebs 2012-08-06 23:17:36