Skip to content

Commit b560b4d

Browse files
afrindianswettsuhasHere
authored
Close on bad PATH (#814)
Creates Invalid Path and Malformed Path error codes. Fixes: #569 --------- Co-authored-by: ianswett <[email protected]> Co-authored-by: Suhas Nandakumar <[email protected]>
1 parent 9f25300 commit b560b4d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

draft-ietf-moq-transport.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,6 +627,10 @@ code, as defined below:
627627
|------|---------------------------|
628628
| 0x7 | Too Many Subscribes |
629629
|------|---------------------------|
630+
| 0x8 | Invalid Path |
631+
|------|---------------------------|
632+
| 0x9 | Malformed Path |
633+
|------|---------------------------|
630634
| 0x10 | GOAWAY Timeout |
631635
|------|---------------------------|
632636
| 0x11 | Control Message Timeout |
@@ -655,6 +659,11 @@ code, as defined below:
655659
* Too Many Subscribes: The session was closed because the subscriber used
656660
a Subscribe ID equal or larger than the current Maximum Subscribe ID.
657661

662+
* Invalid Path: The PATH parameter was used by a server, on a WebTransport
663+
session, or the server does not support the path.
664+
665+
* Malformed Path: The PATH parameter does not conform to the rules in {{path}}.
666+
658667
* GOAWAY Timeout: The session was closed because the peer took too long to
659668
close the session in response to a GOAWAY ({{message-goaway}}) message.
660669
See session migration ({{session-migration}}).
@@ -1316,13 +1325,15 @@ identified as 0xff00000D.
13161325
The PATH parameter (Parameter Type 0x01) allows the client to specify the path
13171326
of the MoQ URI when using native QUIC ({{QUIC}}). It MUST NOT be used by
13181327
the server, or when WebTransport is used. If the peer receives a PATH
1319-
parameter from the server, or when WebTransport is used, it MUST close
1320-
the connection. It follows the URI formatting rules {{!RFC3986}}.
1328+
parameter from the server, when WebTransport is used, or one the server
1329+
does not support, it MUST close the session with Invalid Path.
13211330

1331+
The PATH parameter follows the URI formatting rules {{!RFC3986}}.
13221332
When connecting to a server using a URI with the "moqt" scheme, the
13231333
client MUST set the PATH parameter to the `path-abempty` portion of the
13241334
URI; if `query` is present, the client MUST concatenate `?`, followed by
1325-
the `query` portion of the URI to the parameter.
1335+
the `query` portion of the URI to the parameter. If a PATH does not conform to
1336+
these rules, the session MUST be closed with Malformed Path.
13261337

13271338
#### MAX_SUBSCRIBE_ID {#max-subscribe-id}
13281339

0 commit comments

Comments
 (0)