-
Notifications
You must be signed in to change notification settings - Fork 183
Single PC improvements #986
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
Changes from all commits
d93000e
cee9c73
ec1aba4
60a5098
90e9ce1
13998ba
769386a
e531799
b37099b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| patch type="fixed" "Faster initial connect in single peer connection mode by skipping an unnecessary 20ms negotiate debounce" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,10 +113,6 @@ extension Room: TransportDelegate { | |
| case LKRTCDataChannel.Labels.lossy: subscriberDataChannel.set(lossy: dataChannel) | ||
| default: log("Unknown data channel label \(dataChannel.label)", .warning) | ||
| } | ||
|
|
||
| if subscriberDataChannel.isOpen { | ||
| connectSpan?.record("dc_open") | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is moved to 769386a to make it consistent with the spec, I'm not sure if we should drop this data point if that's not really awaitable from Swift. I may re-evaluate the spec (and other SDKs).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right now I'm more for dropping it...
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dropped in b37099b |
||
| } | ||
| } | ||
|
|
||
| func transportShouldNegotiate(_: Transport) {} | ||
|
|
||
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.
Subtle but important: moving the offer send out of
Debounce.schedule { try? await action() }also surfaces errors that used to be silently swallowed (createOffer / setLocalDescription / WS send failures). Pairs with #987 (typed errors throughAsyncCompleter) in covering connect-time failures.