Skip to content

Commit

Permalink
Close is end, consume partials
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeBishop committed Nov 19, 2018
1 parent 7743d02 commit df5d86a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions draft-ietf-quic-http.md
Original file line number Diff line number Diff line change
Expand Up @@ -874,13 +874,12 @@ After sending a request, a client SHOULD close the stream for sending; after
sending a final response, the server SHOULD close the stream for sending. At
this point, the QUIC stream is fully closed.

Changes to the state of a request stream do not directly affect message
processing. Endpoints MUST process complete HTTP messages without relying on
stream closure as an end-of-message signal. For example, servers do not abort a
response in progress solely due to a state change on the request stream.
However, if a client stream terminates without containing a usable HTTP message,
the server SHOULD abort its response with the error code
HTTP_INCOMPLETE_REQUEST.
When a stream is closed, this indicates the end of an HTTP message.
Because some messages are large or unbounded, endpoints SHOULD begin processing
partial HTTP messages once enough of the message has been received to make
progress. If a client stream terminates without enough of the HTTP message to
provide a complete response, the server SHOULD abort its response with the error
code HTTP_INCOMPLETE_REQUEST.

A server can send a complete response prior to the client sending an entire
request if the response does not depend on any portion of the request that has
Expand Down

0 comments on commit df5d86a

Please sign in to comment.