问题
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