Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Internet explorer 8 大气长轮询不';断开连接后无法重新连接_Internet Explorer 8_Websocket_Long Polling_Atmosphere - Fatal编程技术网

Internet explorer 8 大气长轮询不';断开连接后无法重新连接

Internet explorer 8 大气长轮询不';断开连接后无法重新连接,internet-explorer-8,websocket,long-polling,atmosphere,Internet Explorer 8,Websocket,Long Polling,Atmosphere,服务器崩溃或间歇性网络故障后,Atmosphere web socket客户端能够重新连接到服务器并接收消息。但是,大气长轮询客户端(IE8)无法重新连接 我的应用程序是一个实时事件浏览器,订阅主题并显示所有应用程序事件。Chrome和Firefox运行良好,但不幸的是,我们仍然需要支持IE8,因此WebSocket和长轮询之间的一致性行为至关重要。我错过了什么?这是大气中的虫子吗 如何复制 下载大气聊天示例v2.0.3 修改application.js以使用长轮询并以5秒的间隔永久重新连接

服务器崩溃或间歇性网络故障后,Atmosphere web socket客户端能够重新连接到服务器并接收消息。但是,大气长轮询客户端(IE8)无法重新连接

我的应用程序是一个实时事件浏览器,订阅主题并显示所有应用程序事件。Chrome和Firefox运行良好,但不幸的是,我们仍然需要支持IE8,因此WebSocket和长轮询之间的一致性行为至关重要。我错过了什么?这是大气中的虫子吗

如何复制

  • 下载大气聊天示例v2.0.3

  • 修改application.js以使用长轮询并以5秒的间隔永久重新连接

    传输:“长轮询”
    重新连接:正确,
    MaxReconnectnClose:Number.MAX_值

  • 启动Tomcat服务器并开始聊天

  • 突然阻止雄猫
  • 启动雄猫
  • 打开另一个浏览器并发送一些消息
  • 原始浏览器无法接收消息 [长轮询:不工作]

    onOpen called with {"url":"http://localhost:8080/atmosphere-chat/chat","contentType":"application/json","logLevel":"debug","transport":"long-polling","trackMessageLength":true,"reconnect":true,"maxReconnectOnClose":1.7976931348623157e+308,"reconnectInterval":5000,"enableXDR":true,"fallbackTransport":"long-polling"} atmosphere.js:2801
    onMessage called. {"message":"Chrome","author":"Chrome","time":1381083093440} atmosphere.js:2801
    onMessage called. {"message":"Hello","author":"Chrome","time":1381083099605} atmosphere.js:2801
    << Server Crashed>>
    POST http://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=0cbdf60…sport=polling&X-Cache-Date=0&Content-Type=application/json&_=1381083105434  atmosphere.js:1750
    _executeRequest atmosphere.js:1750
    _pushAjaxMessage atmosphere.js:2197
    _push atmosphere.js:2143
    push atmosphere.js:2511
    request.onClose application.js:111
    _f atmosphere.js:2405
    _invokeFunction atmosphere.js:2361
    _invokeCallback atmosphere.js:2455
    _invokeClose atmosphere.js:2417
    _executeRequest.ajaxRequest.onabort atmosphere.js:1593
    _clearState atmosphere.js:344
    _executeRequest.ajaxRequest.onreadystatechange atmosphere.js:1652
    Unable to connect to http://localhost:8080/atmosphere-chat/chat atmosphere.js:2801
    GET http://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=0cbdf60…-Date=0&Content-Type=application/json&X-atmo-protocol=true&_=1381083099613  atmosphere.js:1750
    _executeRequest atmosphere.js:1750
    _reconnect atmosphere.js:1840
    _executeRequest.ajaxRequest.onreadystatechange atmosphere.js:1735
    << Never Retries>>
    
    Invoking executeWebSocket atmosphere.js:2801
    Using URL: ws://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.0.3-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&Content-Type=application/json&X-atmo-protocol=true atmosphere.js:2801
    Websocket successfully opened atmosphere.js:2801
    onOpen called with with {"url":"http://localhost:8080/atmosphere-chat/chat","contentType":"application/json","logLevel":"debug","transport":"websocket","trackMessageLength":true,"reconnect":true,"maxReconnectOnClose":1.7976931348623157e+308,"reconnectInterval":5000,"enableXDR":true,"fallbackTransport":"long-polling"} atmosphere.js:2801
    onMessage called. {"message":"Chrome","author":"Chrome","time":1381082675245} atmosphere.js:2801
    onMessage called. {"message":"hello","author":"Chrome","time":1381082685115} atmosphere.js:2801
    << server crashed>>
    WebSocket is already in CLOSING or CLOSED state. atmosphere.js:2296
    Invoking executeWebSocket atmosphere.js:2801
    Using URL: ws://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=3764cd2f-6338-4478-bf35-b9f5fa105c7e&X-Atmosphere-Framework=2.0.3-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=1381082719622&Content-Type=application/json&X-atmo-protocol=true atmosphere.js:2801
    Invoking executeWebSocket atmosphere.js:2801
    Using URL: ws://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=3764cd2f-6338-4478-bf35-b9f5fa105c7e&X-Atmosphere-Framework=2.0.3-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=1381082726651&Content-Type=application/json&X-atmo-protocol=true atmosphere.js:2801
    Invoking executeWebSocket atmosphere.js:2801
    Using URL: ws://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=3764cd2f-6338-4478-bf35-b9f5fa105c7e&X-Atmosphere-Framework=2.0.3-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=1381082733654&Content-Type=application/json&X-atmo-protocol=true atmosphere.js:2801
    Invoking executeWebSocket atmosphere.js:2801
    Using URL: ws://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=3764cd2f-6338-4478-bf35-b9f5fa105c7e&X-Atmosphere-Framework=2.0.3-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=1381082740657&Content-Type=application/json&X-atmo-protocol=true atmosphere.js:2801
    << server Restarted>>
    Websocket successfully opened atmosphere.js:2801
    onMessage called. {"message":"IE10","author":"IE10","time":1381082755699} 
    
    用{“url”调用onOpen的
    http://localhost:8080/atmosphere-chat/chat、“contentType”:“application/json”、“logLevel”:“debug”、“transport”:“long polling”、“trackMessageLength”:true、“reconnect”:true、“maxReconnectOnClose”:1.7976931348623157e+308,“reconnectInterval”:5000,“enableXDR”:true,“fallbackTransport”:“long polling”}.js:2801
    有人打电话来。{“message”:“Chrome”,“author”:“Chrome”,“time”:138108303440}atmosphere.js:2801
    有人打电话来。{“message”:“Hello”,“author”:“Chrome”,“time”:1381083099605}atmosphere.js:2801
    >
    邮递http://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=0cbdf60…sport=polling&X-Cache-Date=0&Content-Type=application/json&_=138103105434 Atmosphere.js:1750
    _executeRequest atmosphere.js:1750
    _pushAjaxMessage.js:2197
    _推送大气。js:2143
    推送大气。js:2511
    request.onClose application.js:111
    _f.js:2405
    _invokeFunction atmosphere.js:2361
    _invokeCallback atmosphere.js:2455
    _invokeClose-atmosphere.js:2417
    _executeRequest.ajaxRequest.onabort atmosphere.js:1593
    _clearState atmosphere.js:344
    _executeRequest.ajaxRequest.onreadystatechange atmosphere.js:1652
    无法连接到http://localhost:8080/atmosphere-聊天室/聊天氛围。js:2801
    收到http://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=0cbdf60…-Date=0&Content-Type=application/json&X-atmo-protocol=true&979;=1381083099613 Atmosphere.js:1750
    _executeRequest atmosphere.js:1750
    _重新连接大气。js:1840
    _executeRequest.ajaxRequest.onreadystatechange atmosphere.js:1735
    >
    
    [Web套接字:工作]

    onOpen called with {"url":"http://localhost:8080/atmosphere-chat/chat","contentType":"application/json","logLevel":"debug","transport":"long-polling","trackMessageLength":true,"reconnect":true,"maxReconnectOnClose":1.7976931348623157e+308,"reconnectInterval":5000,"enableXDR":true,"fallbackTransport":"long-polling"} atmosphere.js:2801
    onMessage called. {"message":"Chrome","author":"Chrome","time":1381083093440} atmosphere.js:2801
    onMessage called. {"message":"Hello","author":"Chrome","time":1381083099605} atmosphere.js:2801
    << Server Crashed>>
    POST http://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=0cbdf60…sport=polling&X-Cache-Date=0&Content-Type=application/json&_=1381083105434  atmosphere.js:1750
    _executeRequest atmosphere.js:1750
    _pushAjaxMessage atmosphere.js:2197
    _push atmosphere.js:2143
    push atmosphere.js:2511
    request.onClose application.js:111
    _f atmosphere.js:2405
    _invokeFunction atmosphere.js:2361
    _invokeCallback atmosphere.js:2455
    _invokeClose atmosphere.js:2417
    _executeRequest.ajaxRequest.onabort atmosphere.js:1593
    _clearState atmosphere.js:344
    _executeRequest.ajaxRequest.onreadystatechange atmosphere.js:1652
    Unable to connect to http://localhost:8080/atmosphere-chat/chat atmosphere.js:2801
    GET http://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=0cbdf60…-Date=0&Content-Type=application/json&X-atmo-protocol=true&_=1381083099613  atmosphere.js:1750
    _executeRequest atmosphere.js:1750
    _reconnect atmosphere.js:1840
    _executeRequest.ajaxRequest.onreadystatechange atmosphere.js:1735
    << Never Retries>>
    
    Invoking executeWebSocket atmosphere.js:2801
    Using URL: ws://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=0&X-Atmosphere-Framework=2.0.3-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=0&Content-Type=application/json&X-atmo-protocol=true atmosphere.js:2801
    Websocket successfully opened atmosphere.js:2801
    onOpen called with with {"url":"http://localhost:8080/atmosphere-chat/chat","contentType":"application/json","logLevel":"debug","transport":"websocket","trackMessageLength":true,"reconnect":true,"maxReconnectOnClose":1.7976931348623157e+308,"reconnectInterval":5000,"enableXDR":true,"fallbackTransport":"long-polling"} atmosphere.js:2801
    onMessage called. {"message":"Chrome","author":"Chrome","time":1381082675245} atmosphere.js:2801
    onMessage called. {"message":"hello","author":"Chrome","time":1381082685115} atmosphere.js:2801
    << server crashed>>
    WebSocket is already in CLOSING or CLOSED state. atmosphere.js:2296
    Invoking executeWebSocket atmosphere.js:2801
    Using URL: ws://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=3764cd2f-6338-4478-bf35-b9f5fa105c7e&X-Atmosphere-Framework=2.0.3-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=1381082719622&Content-Type=application/json&X-atmo-protocol=true atmosphere.js:2801
    Invoking executeWebSocket atmosphere.js:2801
    Using URL: ws://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=3764cd2f-6338-4478-bf35-b9f5fa105c7e&X-Atmosphere-Framework=2.0.3-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=1381082726651&Content-Type=application/json&X-atmo-protocol=true atmosphere.js:2801
    Invoking executeWebSocket atmosphere.js:2801
    Using URL: ws://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=3764cd2f-6338-4478-bf35-b9f5fa105c7e&X-Atmosphere-Framework=2.0.3-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=1381082733654&Content-Type=application/json&X-atmo-protocol=true atmosphere.js:2801
    Invoking executeWebSocket atmosphere.js:2801
    Using URL: ws://localhost:8080/atmosphere-chat/chat?X-Atmosphere-tracking-id=3764cd2f-6338-4478-bf35-b9f5fa105c7e&X-Atmosphere-Framework=2.0.3-javascript&X-Atmosphere-Transport=websocket&X-Atmosphere-TrackMessageSize=true&X-Cache-Date=1381082740657&Content-Type=application/json&X-atmo-protocol=true atmosphere.js:2801
    << server Restarted>>
    Websocket successfully opened atmosphere.js:2801
    onMessage called. {"message":"IE10","author":"IE10","time":1381082755699} 
    
    调用executeWebSocket atmosphere.js:2801 使用URL:ws://localhost:8080/atmosphere chat/chat?X-atmosphere-tracking-id=0&X-atmosphere-Framework=2.0.3-javascript&X-atmosphere-Transport=websocket&X-atmosphere-TrackMessageSize=true&X-Cache-Date=0&Content Type=application/json&X-atmo-protocol=true-atmosphere.js:2801 Websocket已成功打开大气。js:2801 使用{“url”调用onOpen:“http://localhost:8080/atmosphere-chat/chat、“contentType”:“application/json”、“logLevel”:“debug”、“transport”:“websocket”、“trackMessageLength”:true,“reconnect”:true,“maxReconnectOnClose”:1.7976931348623157e+308,“reconnectInterval”:5000,“enableXDR”:true,“fallbackTransport”:“long polling”}.js:2801 有人打电话来。{“message”:“Chrome”,“author”:“Chrome”,“time”:1381082675245}atmosphere.js:2801 有人打电话来。{“message”:“hello”,“author”:“Chrome”,“time”:1381082685115}atmosphere.js:2801 > WebSocket已处于关闭或关闭状态。atmosphere.js:2296 调用executeWebSocket atmosphere.js:2801 使用URL:ws://localhost:8080/atmosphere chat/chat?X-atmosphere-tracking-id=3764cd2f-6338-4478-bf35-b9f5fa105c7e&X-atmosphere-Framework=2.0.3-javascript&X-atmosphere-Transport=websocket&X-atmosphere-TrackMessageSize=true&X-Cache-Date=1381082719622&Content-Type=application/json&X-atmo-protocol=true-atmosphere.js:2801 调用executeWebSocket atmosphere.js:2801 使用URL:ws://localhost:8080/atmosphere chat/chat?X-atmosphere-tracking-id=3764cd2f-6338-4478-bf35-b9f5fa105c7e&X-atmosphere-Framework=2.0.3-javascript&X-atmosphere-Transport=websocket&X-atmosphere-TrackMessageSize=true&X-Cache-Date=13810827651&Content-Type=application/json&X-atmo-protocol=true-atmosphere.js:2801 调用executeWebSocket atmosphere.js:2801 使用URL:ws://localhost:8080/atmosphere chat/chat?X-atmosphere-tracking-id=3764cd2f-6338-4478-bf35-b9f5fa105c7e&X-atmosphere-Framework=2.0.3-javascript&X-atmosphere-Transport=websocket&X-atmosphere-TrackMessageSize=true&X-Cache-Date=138108273654&Content-Type=application/json&X-atmo-protocol=true-atmosphere.js:2801 调用executeWebSocket atmosphere.js:2801 使用URL:ws://localhost:8080/atmosphere chat/chat?X-atmosphere-tracking-id=3764cd2f-6338-4478-bf35-b9f5fa105c7e&X-atmosphere-Framework=2.0.3-javascript&X-atmosphere-Transport=websocket&X-atmosphere-TrackMessageSize=true&X-Cache-Date=138108270657&Content-Type=application/json&X-atmo-protocol=true-atmosphere.js:2801 > Websocket已成功打开大气。js:2801 有人打电话来。{“消息”:“IE10”,“作者”:“IE10”,“时间”:1381082755699}
    谢谢

    刚刚测试过,一切正常。您使用的是哪个版本的IE8?还有,让我们继续讨论哪个服务器,因为这听起来更像是配置问题,而不是大气中的bug。-Jeanfrancois