Skip to content

fix: fix debug iOS connection issues#4279

Merged
DimitarTachev merged 4 commits into
releasefrom
tachev/fix-ios-debug-issues
Jan 11, 2019
Merged

fix: fix debug iOS connection issues#4279
DimitarTachev merged 4 commits into
releasefrom
tachev/fix-ios-debug-issues

Conversation

@DimitarTachev
Copy link
Copy Markdown
Contributor

@DimitarTachev DimitarTachev commented Jan 10, 2019

PR Checklist

What is the current behavior?

The CLI could become in an invalid state if you open the debug URL and make a few fast refreshes.

What is the new behavior?

The CLI will lock and handle the connections one by one if you open the debug URL and make a few fast refreshes.

Notes:
We also replaced the old 4 iOS attach messages with a single Attach Request. In this way, the Runtime has a single place of attaching and will be able to handle the bug with invalid app state after locking the phone while debugging. related to: NativeScript/ios-jsc#1053

We don't need the AttachAvailability response as now we don't need different actions based on the response. We just need to get the debug port which is printed by the AttachRequest and the Runtime is now accepting connections regardless of its state. This also allows us to remove the availability calls from the runtime.
…ssues with multiple device socket connections and attach requests, remove all locks on process exit
@DimitarTachev DimitarTachev force-pushed the tachev/fix-ios-debug-issues branch from d7a8de8 to 2135c65 Compare January 10, 2019 14:14
@DimitarTachev DimitarTachev merged commit 2df6ae6 into release Jan 11, 2019
@DimitarTachev DimitarTachev deleted the tachev/fix-ios-debug-issues branch January 11, 2019 08:24
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.

2 participants