W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > April 2018

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

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Mon, 02 Apr 2018 22:24:52 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-378065617-1522707891-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:01 UTC