服务器为什么要比PC更快,更频繁地将数据包运送到iPhone?
简要概述: 我正在板上运行Keil的HTTP Web服务器。 HTML页面运行一个JavaScript循环,每50毫秒每50毫秒获取文件dynamic.cgx。
当网络上只有一个单数设备时,该文件每50ms可靠地传递一次,平均得出1-2ms。当另一个设备连接的那一刻,数据包交付放慢了速度,等待超过500毫秒来响应提取请求。
在iPhone上,不会发生此问题。可以看到一些放缓,但几乎没有达到PC的水平。这不是由于iPhone Google浏览器的运行良好,因此这不是由于Safari。
wireshark with with with with with with 1 pc
Brief overview:
I am running Keil's HTTP Web Server on a board. The HTML page runs a JavaScript loop which fetches the file dynamic.cgx every 50 milliseconds.
When only a singular device is on the network, the file is delivered reliably every 50ms, the fetch taking 1-2ms on average. The moment another device connects, packet delivery slows down, waiting more than 500ms to respond to the fetch request.
On an iPhone, this issue does not occur. A bit of slowdown is seen, but not nearly to the level of the PC. This is not due to Safari, as the iPhone Google browser worked equally well.
WireShark with PC + Device (PC POV)
I can't packet sniff with a mobile device right now, so those aren't included
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论