与服务器的空中连接问题

发布于 2024-10-03 09:06:55 字数 530 浏览 1 评论 0原文

我们开发了 Air 应用程序来向客户提供课程材料。然而,一些客户端遇到了与我们服务器的连接问题,我们已设法复制该问题。

一些背景。该应用程序向服务器发出 jQuery $.ajax POST 请求,以使用用户名和密码登录用户。服务器使用 json 编码的响应进行响应。除了 ajax 尝试在尝试访问服务器时超时的特殊情况外,这种方法非常有效。

我们通过执行以下操作成功地重复了此问题:

  1. 启动计算机。
  2. 在建立互联网连接之前,启动 Air 应用程序。
  3. 尝试登录。

您可以重新加载应用程序、注销 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:

  1. Boot computer.
  2. Before internet connection has established itself, launch the Air app.
  3. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

红玫瑰 2024-10-10 09:07:00

您要连接的用于数据调用的网站的根目录中是否有 crossdomain.xml 文件? 教程

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>

Do you have a crossdomain.xml file in the root directory of the website you are connecting to for the data call? tutorial

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文