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

Garbage collection clarifications #400

Merged
merged 2 commits into from
Mar 1, 2016
Merged

Garbage collection clarifications #400

merged 2 commits into from
Mar 1, 2016

Conversation

aboba
Copy link
Contributor

@aboba aboba commented Feb 29, 2016

Fix for Issue #338

@@ -799,6 +803,10 @@
An <code><a>RTCIceTransport</a></code> instance is constructed (optionally) from an <code><a>RTCIceGatherer</a></code>.
If <var>gatherer.state</var> is "closed" or <var>gatherer.component</var> is "RTCP", then throw an <code>InvalidStateError</code> exception.
</p>
<p>
An <code><a>RTCIceTransport</a></code> object in the "closed" state can be garbage-collected
when it is no longer referenced.
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be "closed" or "failed".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently, the non-normative ICE state diagram in Section 3.6 shows a potential transition from "failed" to "checking" or "disconnected".

@robin-raymond
Copy link
Contributor

FYI - I disagree on the "failed". It might be possible recover with ice restart or with continuous gathering in the future. In my ortc implementation it is possible to recover.

robin-raymond pushed a commit that referenced this pull request Mar 1, 2016
Garbage collection clarifications - merging but we don't indicate in ORTC which ORTC object holds a reference to other ORTC objects to keep ORTC objects from being GC'ed so further clarification will be needed.
@robin-raymond robin-raymond merged commit 0b9b24c into master Mar 1, 2016
@ibc
Copy link
Contributor

ibc commented Mar 1, 2016

Sorry, my mistake.

Regarding "recover with ice restart or with continuous gathering" I also hope that another use-case is considered: network temporary disconnection without involving private/public IP change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants