socket.io传输'flashsocket'需要5秒钟才能在IE 8上启动 [英] socket.io transport 'flashsocket' takes 5 seconds to start on IE 8
问题描述
在IE和其他浏览器上测试其他传输时,不会出现这种延迟。
>有什么可以做的呢?我已经安装了最新的Adobe Flash,运行Windows 7 64位,socket.io 0.9。 解决方案
Flash策略服务器正在工作:它首先尝试连接到端口843并获取策略文件。如果在5秒内没有响应,它会尝试从服务器获取策略文件 - 而socket.io在内部提供这个文件。如果你想防止这种情况,你可以从上面的链接运行你自己的Flash策略服务器 - 这将需要你几分钟,并显着改善用户体验。
This is running against localhost, with all other transports disabled for testing.
When testing other transports on IE and other browsers, there's no such lag.
Anything that can be done about this? I've got the latest Adobe Flash installed, running Windows 7 64bit, socket.io 0.9.
The problem is with how Flash policy server is working: it tries to connect to port 843 at first and obtain policy file. If there is no response within 5 seconds it tries to obtain policy file from server - and socket.io is providing this file internally. If you want to prevent such situation you can run your own flash policy server from link above - this will take you couple minutes and improve user experience significantly.
这篇关于socket.io传输'flashsocket'需要5秒钟才能在IE 8上启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!