Websocket 无论长轮询是什么,连接都会丢失';s设置与crossbar.io

Websocket 无论长轮询是什么,连接都会丢失';s设置与crossbar.io,websocket,long-polling,autobahn,crossbar,Websocket,Long Polling,Autobahn,Crossbar,我正在使用crossbar测试WebSocket和长轮询。 但每次我尝试使用长轮询作为默认传输时,无论我设置了什么设置,我都会在控制台中每隔2秒出现一次“连接丢失”。 顺便说一下,它与websocket完美配合 以下是我要测试的设置: 在服务器站点上: { "lp": { "type": "longpoll", "options": { "request_timeout": 0, "session_tiemout": 0, "queue_l

我正在使用crossbar测试WebSocket和长轮询。 但每次我尝试使用长轮询作为默认传输时,无论我设置了什么设置,我都会在控制台中每隔2秒出现一次“连接丢失”。 顺便说一下,它与websocket完美配合

以下是我要测试的设置: 在服务器站点上:

{
  "lp": {
    "type": "longpoll",
    "options": {
      "request_timeout": 0,
      "session_tiemout": 0,
      "queue_limit_bytes": 0,
      "queue_limit_messages": 0
    }
  }
}
在客户端:

var connection = new autobahn.Connection({
  transports: [{
    url: [my url],
    type: "longpoll",
    max_retries: 1, 
    initial_retry_delay: 1,
    retry_delay_growth: 3,
    retry_delay_jitter: 3
  }], ...
我在服务器端使用python,Chrome43作为默认浏览器(也在firefox上测试)


我的设置有问题吗?

对不起,我无法复制此设置。我使用的是longpoll示例()并修改了配置和连接数据,以反映您在这里列出的内容。(我假设这里的“tiemout”只是一个输入错误,因为Crossbar.io不是以这个开头的。)

这在Chrome 43中工作良好

我最好的猜测是问题出在你没有列出的东西上

我的建议是:从这个例子开始,看看这是否适合你