Tomcat 7 Websockects through AJP not working. Any suggestions?

落爺英雄遲暮 提交于 2019-12-24 01:08:05

问题


Does anyone know if the Tomcat release 7.0.27 AJP Connecter can support http upgrade (websockets) if setting your protocol to the AjpNioProtocol. http://tomcat.apache.org/tomcat-7.0-doc/config/ajp.html#Connector_Comparison

I'm working with atmosphere, but even with a basic socket request, the client websocket closes. Atmo Error: Connection closed with no close frame being sent.


回答1:


The AJP protocol does not support WebSocket. If you use HTTP rather than AJP with your reverse proxy it might work (depends on the proxy).



来源:https://stackoverflow.com/questions/10536718/tomcat-7-websockects-through-ajp-not-working-any-suggestions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!