-
Notifications
You must be signed in to change notification settings - Fork 115
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
Add description of DTLS transport error handling. #2064
Conversation
webrtc.html
Outdated
a certificate validation failure, or a fatal alert (see RFC 5246 | ||
section 7.2), the user agent MUST queue a task that runs the following | ||
steps: | ||
</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Here and elsewhere - There shouldn't be an extra indent here and </p> should be on the line above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tidy....
webrtc.html
Outdated
<code><a data-lt="RTCDtlsTransport error">error</a></code> | ||
using the <a>RTCErrorEvent</a> interface with its errorDetail | ||
attribute set to either "dtls-failure" or "fingerprint-failure", | ||
as appropriate, and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unnecessary newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
M-x fill-paragraph
webrtc.html
Outdated
</p> | ||
</li> | ||
<li> | ||
<p><a>Fire an event</a> named <code><a data-lt="RTCDtlsTransport state change">statechange</a></code> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the state is not already "failed".....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is interesting - the most straightforward code path is to check if state is "failed" before setting the state, and aborting these steps if it's already failed - which will mean that you're guaranteed to never get more than one error notification for a DTLSTransport. (the handler for the error event should see state as "failed", not the state as it was prior to the error).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I addressed them all (except formatting, which html tidy should do).
webrtc.html
Outdated
a certificate validation failure, or a fatal alert (see RFC 5246 | ||
section 7.2), the user agent MUST queue a task that runs the following | ||
steps: | ||
</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tidy....
webrtc.html
Outdated
<code><a data-lt="RTCDtlsTransport error">error</a></code> | ||
using the <a>RTCErrorEvent</a> interface with its errorDetail | ||
attribute set to either "dtls-failure" or "fingerprint-failure", | ||
as appropriate, and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
M-x fill-paragraph
webrtc.html
Outdated
</p> | ||
</li> | ||
<li> | ||
<p><a>Fire an event</a> named <code><a data-lt="RTCDtlsTransport state change">statechange</a></code> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is interesting - the most straightforward code path is to check if state is "failed" before setting the state, and aborting these steps if it's already failed - which will mean that you're guaranteed to never get more than one error notification for a DTLSTransport. (the handler for the error event should see state as "failed", not the state as it was prior to the error).
359845c
to
eb696ab
Compare
Fixes #2044
Preview | Diff