Safari发送两个HTTP请求。同一时间/插座 [英] Safari Sends Two HTTP Req. Same Time/Socket

查看:495
本文介绍了Safari发送两个HTTP请求。同一时间/插座的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个IPad Safari在30毫秒内发送两个HTTP请求(两个不同的PNG)文件。

I have an IPad Safari sending two HTTP requests (two different PNG) files within 30 ms.

我认为即使在Keep Alive HTTP 1.1连接上,也应该有一个明确的请求/响应序列。

I thought that even on a Keep Alive HTTP 1.1 connection there should be a clear sequence of request/response.

我看到Safari浏览器在30毫秒内发送两个GET请求而不等待答案。这会导致某些Web服务器出现问题。

What I saw is that the Safari browser sends two GET requests within 30 ms without waiting for an answer. This causes problems in some web servers.

情况:
我有一个HTML5加载一个SVG,并进一步引用其他图像(如PNG和GIF)。问题不会发生在iPhone 5上,而是发生在iPad上。

Situation: I have an HTML5 loading an SVG with further references to other images (like PNG and GIF). The problem does not occur on IPhone 5 but on the IPad.

请看看这个wireshark转储:
http://tinyurl.com/c7m37b9
(第116/117号课题)

Please seee this wireshark dump: http://tinyurl.com/c7m37b9 (Frame 116/117)

IPad(1 )信息:
版本5.1.1(9B206)
型号MB2292FD
Safari 5.1

IPad (1) Infos: Version 5.1.1 (9B206) Model MB2292FD Safari 5.1

[GET /Licht_3.gif HTTP/1.1
...
User-Agent: Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML,      like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3
Accept: */*
...
Accept-Language: de-de
Accept-Encoding: gzip, deflate
Connection: keep-alive]

[GET /Licht_3.gif HTTP/1.1
Host: 192.9.225.251:8081
...
Accept-Language: de-de
Accept-Encoding: gzip, deflate
Connection: keep-alive]

[HTTP/1.1 200 OK
...
Content-Type: image/png
Content-Length: 3921]


推荐答案

看起来像 HTTP流水线


HTTP流水线技术是一种技术,其中多个HTTP请求是在单个TCP连接上发送的
,而无需等待相应的
响应。

HTTP pipelining is a technique in which multiple HTTP requests are sent on a single TCP connection without waiting for the corresponding responses.

这篇关于Safari发送两个HTTP请求。同一时间/插座的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆