From 7ca2b079b48c3fa466c203d7170f35b5ee2e40c3 Mon Sep 17 00:00:00 2001 From: imhuster <14797903831@163.com> Date: Wed, 3 Jul 2019 11:53:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20pipelining=20=20=E7=BC=BA?= =?UTF-8?q?=E9=99=B7=E6=8F=8F=E8=BF=B0=20=E4=BF=AE=E6=AD=A3=20QuickSort=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加 pipelining 缺陷描述 修正 QuickSort 中的小问题 --- notes/HTTP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/HTTP.md b/notes/HTTP.md index d685d584..409c0b66 100644 --- a/notes/HTTP.md +++ b/notes/HTTP.md @@ -318,7 +318,7 @@ CONNECT www.example.com:443 HTTP/1.1 - pipelining 只能适用于 HTTP/1.1,且只有幂等的请求(GET、HEAD、PUT 和 DELETE 等方法)才能使用 pipelining ,非幂等请求比如 POST 不能使用,因为请求之间可能会存在先后依赖关系([Clients SHOULD NOT pipeline requests using non-idempotent methods or non-idempotent sequences of methods](https://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.1.2.2)); -- head of line blocking 问题,HTTP/1.1 协议规定:服务器必须按请求收到的顺序依次发送响应([A server MUST send its responses to those requests in the same order that the requests were received.](https://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.1.2.2)。因此,如果前面的请求堵塞了,后面的请求即使处理完了,也需要等待前面的请求处理完发送后,才能发送给客户端; +- head of line blocking 问题,HTTP/1.1 协议规定:服务器必须按请求收到的顺序依次发送响应([A server MUST send its responses to those requests in the same order that the requests were received.](https://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.1.2.2))。因此,如果前面的请求堵塞了,后面的请求即使处理完了,也需要等待前面的请求处理完发送后,才能发送给客户端; - 绝大部分的 HTTP 代理服务器不支持 pipelining;