Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify the packets that carry closing frames #1890

Merged
merged 7 commits into from
Oct 23, 2018

Conversation

martinthomson
Copy link
Member

@martinthomson martinthomson commented Oct 19, 2018

I decided to reword #1818 after reading it.

I think that the second piece to #1786 , which was to make allowances for
fatal errors arising from Initial packets won't be necessary. See my
comments on #1819 for that.

Closes #1818, #1786.

@martinthomson martinthomson added editorial An issue that does not affect the design of the protocol; does not require consensus. -transport labels Oct 19, 2018
@@ -2302,6 +2302,12 @@ the application requests that the connection be closed. The application
protocol can use an APPLICATION_CLOSE message with an appropriate error code to
signal closure.

If the endpoint believes that a connection has been successfully established, it
Copy link
Contributor

Choose a reason for hiding this comment

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

I find this condition a little vague for a MUST. How about "has received a short header from the peer"?

I think that the second piece to #1786, which was to make allowances for
fatal errors arising from Initial packets won't be necessary.  I'm happy
to see a PR, of course, but the sentiment I've heard expressed is that
it is very hard to manage this, and the spec wouldn't expressly prevent
someone from trying to build a system that was resilient to
maliciously-crafted Initial packets, but we wouldn't take steps in this
document to deal with that.  As previously agreed, if you are attacked
and the attacker was able to modify Initial packets, then they can deny
you the ability to connect.

Closes #1818, #1786.
@@ -2313,6 +2304,13 @@ the application requests that the connection be closed. The application
protocol can use an APPLICATION_CLOSE message with an appropriate error code to
signal closure.

If the connection has been successfully established, endpoints MUST send any
closing frames in a 1-RTT packet. Prior to connection establishment, endpoints
SHOULD send closing frames in a Handshake packet. An endpoint MAY send closing
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need a caveat like "...SHOULD send closing frames in a Handshake packet if possible."

@martinthomson martinthomson deleted the how-to-protect-close branch October 23, 2018 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
-transport editorial An issue that does not affect the design of the protocol; does not require consensus.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants