增加 pipelining 缺陷描述 修正 QuickSort 中的小问题

增加 pipelining  缺陷描述 修正 QuickSort 中的小问题
This commit is contained in:
imhuster 2019-07-03 11:53:02 +08:00
parent 0dd19569d5
commit 7ca2b079b4

View File

@ -318,7 +318,7 @@ CONNECT www.example.com:443 HTTP/1.1
- pipelining 只能适用于 HTTP/1.1且只有幂等的请求GETHEADPUT 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