通过AJP的Tomcat 7 Websockects无法正常工作。有什么建议么? [英] Tomcat 7 Websockects through AJP not working. Any suggestions?

查看:203
本文介绍了通过AJP的Tomcat 7 Websockects无法正常工作。有什么建议么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果将协议设置为AjpNioProtocol,是否有人知道Tomcat 7.0.27版AJP Connecter是否可以支持http升级(websockets)。
http://tomcat.apache.org/tomcat -7.0-doc / config / ajp.html#Connector_Comparison

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

我正在使用大气,但是即使有基本的套接字请求,客户端websocket也将关闭。 Atmo错误:连接已关闭,没有发送关闭帧。

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.

推荐答案

AJP协议不支持WebSocket。如果您将HTTP而不是AJP与反向代理一起使用,则它可能会起作用(取决于代理)。

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).

这篇关于通过AJP的Tomcat 7 Websockects无法正常工作。有什么建议么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆