与服务器的空中连接问题
我们开发了 Air 应用程序来向客户提供课程材料。然而,一些客户端遇到了与我们服务器的连接问题,我们已设法复制该问题。
一些背景。该应用程序向服务器发出 jQuery $.ajax POST 请求,以使用用户名和密码登录用户。服务器使用 json 编码的响应进行响应。除了 ajax 尝试在尝试访问服务器时超时的特殊情况外,这种方法非常有效。
我们通过执行以下操作成功地重复了此问题:
- 启动计算机。
- 在建立互联网连接之前,启动 Air 应用程序。
- 尝试登录。
您可以重新加载应用程序、注销 Windows 并登录。回来,倒立...应用程序将不断报告连接失败(“无法连接...”< 15 秒后出现超时消息)。唯一的补救措施是完全重新启动 Windows 并等待 Skype 之类的连接,从而确保可以进行服务器连接。
我们怀疑该问题与 Air 所做的某种程度的缓存有关,或者与 Air 在启动时创建的与互联网连接相关的某些内容有关。
任何帮助或建议将不胜感激。
格雷格.
We have developed an Air application to deliver course material to clients. However, some clients are experiencing connectivity issues to our server, which we have managed to duplicate.
Some background. The App makes jQuery $.ajax POST requests to the server to log the user in using their username and password. The server responds with a json encoded response. This works perfectly except for particular scenarios, where the ajax attempt just times out trying to reach the server.
We managed to duplicate this issue by doing the following:
- Boot computer.
- Before internet connection has established itself, launch the Air app.
- Attempt to log in.
You can re-load the app, log off Windows & back in, stand on your head... the app will continuously report a connection failure ("Unable to connect..." < our timeout message after 15 seconds). The only remedy is a full reboot of Windows and to wait for something like Skype to connect, thereby ensuring a server connection is possible.
We suspect the issue is related to some level of caching that Air does, or something that Air creates on boot, related to an internet connection.
Any help or suggestions would be greatly appreciated.
Greg.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您要连接的用于数据调用的网站的根目录中是否有 crossdomain.xml 文件? 教程
Do you have a crossdomain.xml file in the root directory of the website you are connecting to for the data call? tutorial