Skip to content

Commit

Permalink
Remove error code and reason phrase from GOAWAY
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson committed Mar 8, 2017
1 parent 2c716f8 commit 6fcb7f9
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions draft-ietf-quic-transport.md
Original file line number Diff line number Diff line change
Expand Up @@ -1600,6 +1600,7 @@ Reason Phrase:
: An optional human-readable explanation for why the connection was closed.



## GOAWAY Frame {#frame-goaway}

An endpoint uses a GOAWAY frame (type=0x03) to initiate a graceful shutdown of a
Expand All @@ -1611,23 +1612,14 @@ those indicated. The GOAWAY frame is as follows:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Error Code (32) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Largest Client Stream ID (32) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Largest Server Stream ID (32) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reason Phrase Length (16) | [Reason Phrase (*)] ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
~~~

The fields of a GOAWAY frame are:

Error Code:

: A 32-bit field error code which indicates the reason for closing this
connection.

Largest Client Stream ID:

: The highest-numbered, client-initiated stream on which the endpoint sending
Expand All @@ -1642,15 +1634,6 @@ Largest Server Stream ID:
higher-numbered, server-initiated streams (that is, even-numbered streams) are
implicitly reset by sending or receiving the GOAWAY frame.

Reason Phrase Length:

: A 16-bit unsigned number specifying the length of the reason phrase. This may
be zero if the sender chooses to not give details beyond the error code.

Reason Phrase:

: An optional, human-readable explanation for why the connection was closed.

A GOAWAY frame indicates that any application layer actions on streams with
higher numbers than those indicated can be safely retried because no data was
exchanged. An endpoint MUST set the value of the Largest Client or Server
Expand Down

0 comments on commit 6fcb7f9

Please sign in to comment.