-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix tv-casting-app implementation of commissioner discovery/resolution #23787
Merged
yufengwangca
merged 3 commits into
project-chip:master
from
sharadb-amazon:fixes-20221128
Nov 29, 2022
Merged
Fix tv-casting-app implementation of commissioner discovery/resolution #23787
yufengwangca
merged 3 commits into
project-chip:master
from
sharadb-amazon:fixes-20221128
Nov 29, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… the CommissionableDataProviderImpl
sharadb-amazon
changed the title
Fix Android tv-casting-app usage of NsdManager for commissioner discovery/resolution
Fix tv-casting-app implementation of commissioner discovery/resolution
Nov 28, 2022
pullapprove
bot
requested review from
anush-apple,
arkq,
Byungjoo-Lee,
bzbarsky-apple,
carol-apple,
chshu,
chulspro,
Damian-Nordic,
dhrishi,
electrocucaracha,
emargolis,
franck-apple,
gjc13,
harimau-qirex,
harsha-rajendran,
hawk248,
isiu-apple,
jelderton,
jepenven-silabs,
jmartinez-silabs,
jtung-apple,
lazarkov,
LuDuda,
mlepage-google and
mrjerryjohns
November 28, 2022 23:18
pullapprove
bot
requested review from
msandstedt,
mspang,
rgoliver,
robszewczyk,
saurabhst,
selissia,
tcarmelveilleux,
tecimovic,
turon,
vijs,
vivien-apple,
woody-apple,
xylophone21 and
yufengwangca
November 28, 2022 23:18
chrisdecenzo
approved these changes
Nov 28, 2022
examples/tv-casting-app/android/App/app/src/main/jni/com/chip/casting/NsdDiscoveryListener.java
Outdated
Show resolved
Hide resolved
PR #23787: Size comparison from 8f1136d to 0ffbfe5 Increases (6 builds for bl602, bl702, esp32, psoc6, telink)
Decreases (8 builds for cc13x2_26x2, esp32, psoc6, qpg, telink)
Full report (53 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
hawk248
approved these changes
Nov 29, 2022
yufengwangca
approved these changes
Nov 29, 2022
sharadb-amazon
added a commit
to sharadb-amazon/connectedhomeip
that referenced
this pull request
Nov 29, 2022
project-chip#23787) * tv-casting-app/darwin: fixing condition checked before returning from the CommissionableDataProviderImpl * tv-casting-app/android: resolving deadlock in using the NsdManager * Reusing one ExecutorService per chrisdecenzo's feedback
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #23786
Problem
The tv-casting-app's implementation of the commissioner discovery / resolution gets deadlocked when more than 1 commissioner video players are on the network.
Change summary
In this change, we run the resolution (and do the preceeding locking) in a separate thread rather than the one the NsdManager is calling back on, onServiceFound.
Also, in this PR, a small bug fix (typo) where the darwin MatterTvCastingBridge.Framework was checking for mSetupDiscriminator instead of mSpake2pIterationCount in the implementation of GetSpake2pIterationCount
Testing
Verified the fix using the sample tv-casting-app running discovery against 2 commissioners being advertised on network.