Re: [webrtc-pc] new is not valid for SctpTransportState (#2422)

As Harald said, there is only one instance calling that algorithm, and it is called with initialState set to "connecting", so there is no way that I can think of that "new" will ever be an exposed value. If so, it sounds like rather than adding an untestable/invisible state, we should remove the "initialState" parameter, and have create an RTCSctpTransport always use "connecting" as its initialState.

I imagine the reason not to do that is if we plan on re-using this interface out of PeerConnection in a later version - if so, adding "new" is probably OK, although maybe somewhat premature. @alvestrand can you comment as to why you had added the "new" state in your Chromium implementation?

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

Received on Wednesday, 8 January 2020 07:04:09 UTC