11.07.2015 Views

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

Network Working Group R. Fielding Request for Comments: 2616 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

idempotent (see section 9.1.2). Non-idempotent methods or sequencesMUST NOT be automatically retried, although user agents MAY offer ahuman operator the choice of retrying the request(s). Confirmation byuser-agent software with semantic understanding of the applicationMAY substitute <strong>for</strong> user confirmation. The automatic retry SHOULD NOTbe repeated if the second sequence of requests fails.Servers SHOULD always respond to at least one request per connection,if at all possible. Servers SHOULD NOT close a connection in themiddle of transmitting a response, unless a network or client failureis suspected.Clients that use persistent connections SHOULD limit the number ofsimultaneous connections that they maintain to a given server. Asingle-user client SHOULD NOT maintain more than 2 connections withany server or proxy. A proxy SHOULD use up to 2*N connections toanother server or proxy, where N is the number of simultaneouslyactive users. These guidelines are intended to improve HTTP responsetimes and avoid congestion.8.2 Message Transmission Requirements8.2.1 Persistent Connections and Flow ControlHTTP/1.1 servers SHOULD maintain persistent connections and use TCP'sflow control mechanisms to resolve temporary overloads, rather thanterminating connections with the expectation that clients will retry.The latter technique can exacerbate network congestion.<strong>Fielding</strong>, et al. Standards Track [Page 47]RFC <strong>2616</strong> HTTP/1.1 June 19998.2.2 Monitoring Connections <strong>for</strong> Error Status MessagesAn HTTP/1.1 (or later) client sending a message-body SHOULD monitorthe network connection <strong>for</strong> an error status while it is transmittingthe request. If the client sees an error status, it SHOULDimmediately cease transmitting the body. If the body is being sentusing a "chunked" encoding (section 3.6), a zero length chunk andempty trailer MAY be used to prematurely mark the end of the message.If the body was preceded by a Content-Length header, the client MUSTclose the connection.8.2.3 Use of the 100 (Continue) Status

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!