Re: [webrtc-pc] RTCPeerConnection.close procedure: Data Channel & SCTP questions

I agree that `RTCPeerConnection.close` should perform an abrupt closure, sending an SCTP ABORT chunk. Since `close` is synchronous (doesn't return a promise), and results in everything being closed, it can't do anything graceful without blocking the main thread or lying about things being closed.

I'm not sure about the events, though. The general policy with events seems to be "don't fire anything while closing the `RTCPeerConnection`"; there's always a step that says "If `connection`'s [[IsClosed]] slot is `true`, abort these steps."

-- 
GitHub Notification of comment by taylor-b
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1821#issuecomment-378065617 using your GitHub account

Received on Monday, 2 April 2018 22:25:01 UTC