Skip to content
This repository was archived by the owner on Oct 10, 2018. It is now read-only.

docs: bring the spec to the spec repo #1

Merged
merged 1 commit into from
Feb 19, 2018
Merged

docs: bring the spec to the spec repo #1

merged 1 commit into from
Feb 19, 2018

Conversation

daviddias
Copy link
Member

//cc @Stebalien

daviddias added a commit to daviddias/go-multiplex that referenced this pull request Feb 19, 2018
@daviddias daviddias merged commit 5dcc194 into master Feb 19, 2018
@daviddias daviddias deleted the spec branch February 19, 2018 07:26

```
header = readUvarint()
flag = head & 0x07
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be header & 0x07

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review @richardschneider. This was a straight c&p from @Stebalien's notes. Mind submitting a PR with the proposed fixes?

```
header = readUvarint()
flag = head & 0x07
id = flag >> 3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should header >> 3

| CloseReceiver | 3 |
| CloseInitiator | 4 |
| ResetReceiver | 5 |
| ResetInitiator | 6 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not displaying correctly. Try adding a header to the table, e.g. | Flag | Value| \n | ---- | ------ |

Copy link
Member Author

@daviddias daviddias Feb 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I fixed it in master. ca1d70a


The data segment is length prefixed by another unsigned varint. This results in one message looking like:

| header | length | data |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again a header with | ---- | ---- | ---- |

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in master ca1d70a

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants