Skip to content

Commit

Permalink
Merge pull request #527 from bashi/error-code-32-bit
Browse files Browse the repository at this point in the history
Update ranges of streamErrorCode
  • Loading branch information
jan-ivar authored Jul 18, 2023
2 parents 80e7637 + fb01b5e commit b6eef8f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1591,10 +1591,10 @@ To <dfn for="WebTransportSendStream">abort</dfn> a {{WebTransportSendStream}} |s
1. If |reason| is a {{WebTransportError}} and |reason|.{{WebTransportError/[[StreamErrorCode]]}} is not
null, then set |code| to |reason|.{{WebTransportError/[[StreamErrorCode]]}}.
1. If |code| < 0, then set |code| to 0.
1. If |code| > 255, then set |code| to 255.
1. If |code| > 4294967295, then set |code| to 4294967295.

Note: Valid values of |code| are from 0 to 255 inclusive. The code will be encoded to a number in
[0x52e4a40fa8db, 0x52e4a40fa9e2] as decribed in [[!WEB-TRANSPORT-HTTP3]].
Note: Valid values of |code| are from 0 to 4294967295 inclusive. The code will be encoded to a
number in [0x52e4a40fa8db, 0x52e5ac983162] as decribed in [[!WEB-TRANSPORT-HTTP3]].

1. Run the following steps [=in parallel=]:
1. [=stream/Reset=] |stream|.{{WebTransportSendStream/[[InternalStream]]}} with |code|.
Expand All @@ -1612,8 +1612,8 @@ Whenever a [=WebTransport stream=] associated with a {{WebTransportSendStream}}
1. Let |transport| be |stream|.{{WebTransportSendStream/[[Transport]]}}.
1. Let |code| be the application protocol error code attached to the STOP_SENDING frame. [[!QUIC]]

Note: Valid values of |code| are from 0 to 255 inclusive. The code has been decoded from a number in
[0x52e4a40fa8db, 0x52e4a40fa9e2] as decribed in [[!WEB-TRANSPORT-HTTP3]].
Note: Valid values of |code| are from 0 to 4294967295 inclusive. The code has been decoded from a
number in [0x52e4a40fa8db, 0x52e5ac983162] as decribed in[[!WEB-TRANSPORT-HTTP3]].

1. [=Queue a network task=] with |transport| to run these steps:
1. If |transport|.{{[[State]]}} is `"closed"` or `"failed"`, abort these steps.
Expand Down Expand Up @@ -1816,10 +1816,10 @@ steps.
1. If |reason| is a {{WebTransportError}} and |reason|.{{WebTransportError/[[StreamErrorCode]]}} is not
null, then set |code| to |reason|.{{WebTransportError/[[StreamErrorCode]]}}.
1. If |code| < 0, then set |code| to 0.
1. If |code| > 255, then set |code| to 255.
1. If |code| > 4294967295, then set |code| to 4294967295.

Note: Valid values of |code| are from 0 to 255 inclusive. The code will be encoded to a number in
[0x52e4a40fa8db, 0x52e4a40fa9e2] as decribed in [[!WEB-TRANSPORT-HTTP3]].
Note: Valid values of |code| are from 0 to 4294967295 inclusive. The code will be encoded to a
number in [0x52e4a40fa8db, 0x52e5ac983162] as decribed in [[!WEB-TRANSPORT-HTTP3]].

1. [=set/Remove=] |stream| from |transport|.{{[[SendStreams]]}}.
1. Run the following steps [=in parallel=]:
Expand All @@ -1844,8 +1844,8 @@ Whenever a [=WebTransport stream=] associated with a {{WebTransportReceiveStream
1. Let |transport| be |stream|.{{WebTransportReceiveStream/[[Transport]]}}.
1. Let |code| be the application protocol error code attached to the RESET_STREAM frame. [[!QUIC]]

Note: Valid values of |code| are from 0 to 255 inclusive. The code has been decoded from a number in
[0x52e4a40fa8db, 0x52e4a40fa9e2] as decribed in [[!WEB-TRANSPORT-HTTP3]].
Note: Valid values of |code| are from 0 to 4294967295 inclusive. The code has been decoded from a
number in [0x52e4a40fa8db, 0x52e5ac983162] as decribed in [[!WEB-TRANSPORT-HTTP3]].

1. [=Queue a network task=] with |transport| to run these steps:
1. If |transport|.{{[[State]]}} is `"closed"` or `"failed"`, abort these steps.
Expand Down

0 comments on commit b6eef8f

Please sign in to comment.