Skip to content

Commit e44aa48

Browse files
authored
Fail session on malformed parameter (#338)
Fixes #314
2 parents 4d42a78 + 4b0a7ab commit e44aa48

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

draft-ietf-moq-transport.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -400,21 +400,23 @@ Section 5}}).
400400
The application MAY use any error message and SHOULD use a relevant
401401
code, as defined below:
402402

403-
|------|-----------------------|
404-
| Code | Reason |
405-
|-----:|:----------------------|
406-
| 0x0 | No Error |
407-
|------|-----------------------|
408-
| 0x1 | Generic Error |
409-
|------|-----------------------|
410-
| 0x2 | Unauthorized |
411-
|------|-----------------------|
412-
| 0x3 | Protocol Violation |
413-
|------|-----------------------|
414-
| 0x4 | Duplicate Track Alias |
415-
|------|-----------------------|
416-
| 0x10 | GOAWAY Timeout |
417-
|------|-----------------------|
403+
|------|---------------------------|
404+
| Code | Reason |
405+
|-----:|:--------------------------|
406+
| 0x0 | No Error |
407+
|------|---------------------------|
408+
| 0x1 | Generic Error |
409+
|------|---------------------------|
410+
| 0x2 | Unauthorized |
411+
|------|---------------------------|
412+
| 0x3 | Protocol Violation |
413+
|------|---------------------------|
414+
| 0x4 | Duplicate Track Alias |
415+
|------|---------------------------|
416+
| 0x5 | Parameter Length Mismatch |
417+
|------|---------------------------|
418+
| 0x10 | GOAWAY Timeout |
419+
|------|---------------------------|
418420

419421
* No Error: The session is being terminated without an error.
420422

@@ -735,9 +737,9 @@ The Parameter Length field of the String Parameter encodes the length
735737
of the Parameter Value field in bytes.
736738

737739
Each parameter description will indicate the data type in the Parameter Value
738-
field. If the parameter value is a varint, but the self-encoded length of that
739-
varint does not match the Parameter Length field, the receiver MUST ignore the
740-
parameter using the value in the Parameter Length field.
740+
field. If a receiver understands a parameter type, and the parameter length
741+
implied by that type does not match the Parameter Length field, the receiver MUST
742+
terminate the session with error code 'Parameter Length Mismatch'.
741743

742744
### Version Specific Parameters {#version-specific-params}
743745

0 commit comments

Comments
 (0)