词条 | HTTP pipelining |
释义 |
The technique was superseded by multiplexing via HTTP/2,[2] which is supported by most modern browsers.[3] As of 2018, HTTP pipelining is not enabled by default in modern browsers, due to several issues including buggy proxy servers and HOL blocking.[2] Motivation and limitationsThe pipelining of requests results in a dramatic improvement[4] in the loading times of HTML pages, especially over high latency connections such as satellite Internet connections. The speedup is less apparent on broadband connections, as the limitation of HTTP 1.1 still applies: the server must send its responses in the same order that the requests were received—so the entire connection remains first-in-first-out[1] and HOL blocking can occur. The asynchronous operation of HTTP/2 and SPDY are solutions for this.[5] Browsers ultimately did not enable pipelining by default, and by 2017 most browsers supported HTTP/2 by default which used multiplexing instead.[2] Non-idempotent requests, like those using POST, should not be pipelined.[6] Sequences of GET and HEAD requests can always be pipelined. A sequence of other idempotent requests like PUT and DELETE can be pipelined or not depending on whether requests in the sequence depend on the effect of others.[1] HTTP pipelining requires both the client and the server to support it. HTTP/1.1 conforming servers are required to support pipelining. This does not mean that servers are required to pipeline responses, but that they are required not to fail if a client chooses to pipeline requests.[7] {{Clear left}}Implementation statusPipelining was introduced in HTTP/1.1 and was not present in HTTP/1.0.[8] Implementation in web serversImplementing pipelining in web servers is a relatively simple matter of making sure that network buffers are not discarded between requests. For that reason, most modern web servers handle pipelining without any problem. Implementation in web browsersOf all the major browsers, only Opera based on Presto layout engine had a fully working implementation that was enabled by default. In all other browsers HTTP pipelining is disabled or not implemented.[5]
Implementation in web proxiesMost HTTP proxies do not pipeline outgoing requests.[18] Some versions of the Squid web proxy will pipeline up to two outgoing requests. This functionality has been disabled by default and needs to be manually enabled for "bandwidth management and access logging reasons."[19] Squid supports multiple requests from clients. The Polipo proxy pipelines outgoing requests.[20] Tempesta FW, an open source application delivery controller[21], also pipelines requests to backend servers.[22] Other implementationsThe libwww library made by the World Wide Web Consortium (W3C), supports pipelining since version 5.1 released at 18 February 1997.[23] Other application development libraries that support HTTP pipelining include:
Some other applications currently exploiting pipelining are:
Multipart XHR is implementation of pipelining (without any browser or web server support) done purely in JavaScript in combination with server-side scripting.{{Citation needed|date=August 2010}} Testing tools which support HTTP pipelining include:
See also
References1. ^1 2 {{cite web|url=http://tools.ietf.org/html/rfc7230#section-6.3.2|title=Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing|publisher=ietf.org|accessdate=2014-07-24}} 2. ^1 2 {{Cite web|url=https://developer.mozilla.org/en-US/docs/Web/HTTP/Connection_management_in_HTTP_1.x$revision/1330814|title=Revision 1330814 {{!}} Connection management in HTTP/1.x {{!}} MDN|website=MDN Web Docs|language=en-US|access-date=2018-03-19}} 3. ^{{cite web|url=http://caniuse.com/#search=http2|title=HTTP2 browser support|accessdate=March 9, 2017}} 4. ^{{cite web|url=http://www.w3.org/Protocols/HTTP/Performance/Pipeline.html|title=Network Performance Effects of HTTP/1.1, CSS1, and PNG|publisher=World Wide Web Consortium|accessdate=14 January 2010|date=24 June 1997|first1=Henrik Frystyk|last1=Nielsen|authorlink1=Henrik Frystyk Nielsen|first2=Jim|last2=Gettys|authorlink2=Jim Gettys|first3=Anselm|last3=Baird-Smith|first4=Eric|last4=Prud'hommeaux|first5=Håkon Wium|last5=Lie|authorlink5=Håkon Wium Lie|first6=Chris|last6=Lilley|authorlink6=Chris Lilley (computer scientist)}} 5. ^1 {{cite web|url=https://lwn.net/Articles/362473/|title=Reducing HTTP latency with SPDY|first=Nathan|last=Willis|date=18 November 2009|publisher=LWN.net}} 6. ^{{cite web|url=http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html|title=Connections|publisher=w3.org}} 7. ^{{cite web|url=https://www-archive.mozilla.org/projects/netlib/http/pipelining-faq.html|title=HTTP/1.1 Pipelining FAQ'}} 8. ^http://www8.org/w8-papers/5c-protocols/key/key.html 9. ^{{cite web|url=http://www.microsoft.com/windowsxp/expertzone/chats/transcripts/08_0814_ez_ie8.mspx|title=Wayback link of 'Windows Internet Explorer 8 Expert Zone Chat (August 14, 2008)'|date=August 14, 2008|publisher=Microsoft|accessdate=May 10, 2012}}{{webarchive |url=https://web.archive.org/web/*/http://www.microsoft.com/windowsxp/expertzone/chats/transcripts/08_0814_ez_ie8.mspx |date=* }} 10. ^{{Cite news|url=https://blogs.msdn.microsoft.com/ie/2005/04/11/internet-explorer-and-connection-limits/|title=Internet Explorer and Connection Limits|newspaper=IEBlog|access-date=2016-11-14}} 11. ^Pipelining Network MozillaZine 12. ^{{cite book|title=Firefox secrets|author=Cheah Chu Yeow|page=180|isbn=0-9752402-4-2}} 13. ^{{cite web|url= https://bugzilla.mozilla.org/show_bug.cgi?id=264354|title=Bug 264354: Enable HTTP pipelining by default|publisher=Mozilla|accessdate=September 16, 2011}} 14. ^{{cite web|url=https://hg.mozilla.org/releases/mozilla-2.0/file/09565753ce5f/netwerk/protocol/http/src/nsHttpConnection.cpp#l251|title=Source code – nsHttpConnection.cpp|publisher=Mozilla|work=Firefox source code|date=May 7, 2010|accessdate=December 5, 2010}} 15. ^{{cite web|url= https://bugzilla.mozilla.org/show_bug.cgi?id=1340655|title=Bug 1340655: Remove H1 Pipeline Support|publisher=Mozilla|accessdate=March 22, 2017}} 16. ^[https://www.chromium.org/developers/design-documents/network-stack/http-pipelining HTTP Pipelining - The Chromium Projects] 17. ^{{Cite web|url=https://forum.palemoon.org/viewtopic.php?f=5&t=16869&p=123455|title=HTTP/1 Pipelining support has been removed in Firefox 54 - Pale Moon forum|website=forum.palemoon.org|language=en-us|access-date=2018-06-07}} 18. ^{{cite web|url= http://www.mnot.net/blog/2007/06/20/proxy_caching|title=The State of Proxy Caching|date=June 20, 2007|author=Mark Nottingham|accessdate= May 16, 2009}} 19. ^{{cite web|url=http://www.squid-cache.org/Doc/config/pipeline_prefetch/|title=squid : pipeline_prefetch configuration directive|date=November 9, 2009|publisher=Squid|accessdate=December 1, 2009}} 20. ^{{cite web|url= http://www.pps.jussieu.fr/~jch/software/polipo/|title=Polipo — a caching web proxy|date=September 18, 2009|publisher=Juliusz Chroboczek|accessdate=November 12, 2009}} 21. ^{{cite web|url= https://github.com/tempesta-tech/tempesta|title=Tempesta FW — a Linux Application Delivery Controller|publisher=GitHub|accessdate=March 29, 2018}} 22. ^{{cite web|url= https://github.com/tempesta-tech/tempesta/wiki/Servers:-Tempesta's-side|title=Servers: Tempesta's side - tempesta-tech/tempesta Wiki|date=August 1, 2017|publisher=Tempesta Technologies INC|accessdate=March 29, 2018}} 23. ^{{cite web|last=Kahan|first=José|title=Change History of libwww|url=http://www.w3.org/Library/User/History.html |publisher=World Wide Web Consortium|accessdate=August 3, 2010|date= June 7, 2002}} 24. ^Using HTTP::Async for Parallel HTTP Requests (Colin Bradford) 25. ^System.Net.HttpWebRequest & pipelining 26. ^QNetworkRequest Class Reference {{webarchive|url=https://web.archive.org/web/20091222054207/http://doc.qt.nokia.com/4.6/qnetworkrequest.html |date=2009-12-22 }}, Nokia QT documentation 27. ^Pipelined HTTP GET utility 28. ^Curl pipelining explanation {{webarchive|url=https://web.archive.org/web/20120627181619/http://curl.haxx.se/dev/readme-pipelining.html |date=2012-06-27 }}, Curl developer documentation 29. ^{{cite book | title = Version Control with Subversion|author1=C. Michael Pilato |author2=Ben Collins-Sussman |author3=Brian W. Fitzpatrick |page=238|publisher=O'Reilly Media|year=2008|isbn=0-596-51033-0}} 30. ^{{cite web|url=http://www.erenkrantz.com/oscon/OSCON%202007%20Subversion%20New%20Toys.pdf|title=Subversion: Powerful New Toys|author=Justin R. Erenkrantz|year=2007}} 31. ^{{cite web|url= https://technet.microsoft.com/en-us/library/cc737394%28WS.10%29.aspx|title= HTTP/HTTPS messages|publisher=Microsoft TechNet|date=January 21, 2005}} 32. ^How CICS Web support handles pipelining 33. ^HTTP Website External links
1 : Hypertext Transfer Protocol |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。