【问题标题】:Atmosphere - Nginx as https->http forwarder - websocket not workingAtmosphere - Nginx 作为 https->http 转发器 - websocket 不工作
【发布时间】:2013-04-23 07:21:06
【问题描述】:

我正在使用 Nginx 将 https 转换为 http 从客户端到服务器。

没有这种转发,我的氛围配置在 websocket 中运行良好。

现在,如果我在中间切换到带有 Nginx 的 https

var request = { url: "https://localhost/writever/chat",
                     contentType : "application/json",
                     logLevel : 'debug',
                     transport : transport ,
                     enableProtocol : true,
                     fallbackTransport: 'long-polling'};

Websocket 连接在超时后失败并降级为长轮询。

您知道是否可以让 websocket 在这些条件下工作?

顺便说一句,最新的 nginx 1.3 支持 websocket 代理 - 仍处于开发模式。如果使用这种方法,对 AtmosphereHandler 有影响吗?

【问题讨论】:

    标签: java asynchronous nginx websocket atmosphere


    【解决方案1】:

    它不应该有所作为。但是看看:

    http://goo.gl/04g8F

    您可能想要添加此标题,看看是否会有所作为。我真诚地怀疑,但试试看。

    -- 让弗朗索瓦

    【讨论】:

    猜你喜欢
    • 2018-07-27
    • 2012-03-20
    • 1970-01-01
    • 1970-01-01
    • 2020-02-18
    • 2020-10-17
    • 2018-01-04
    • 2019-07-29
    • 1970-01-01
    相关资源
    最近更新 更多