Navigation Menu

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

There is a session setup race condition if the data stream errors during shutdown #1263

Closed
NicoleYarroch opened this issue May 15, 2019 · 1 comment
Labels
bug A defect in the library
Projects
Milestone

Comments

@NicoleYarroch
Copy link
Contributor

Bug Report

There is a session setup race condition if the data stream errors after the transport disconnects. I've only seen this bug once.

Reproduction Steps
  1. Connect app to TDK via Bluetooth using the multisession protocol. A data session will be created.
  2. Connect app to TDK via USB. The data session will be destroyed. However, if the stream errors during this process, (i.e. NSStreamEventErrorOccurred or NSStreamEventEndEncountered) the SDLIAPTransport object will try to reestablish a session with the accessory. Since the phone is connected to the TDK via a USB cord, the attempt to create a new session will be successful. Meanwhile, the lifecycle manager will be shutting down and starting again. When the lifecycle manager enters the ready state, it will create a new SDLIAPTransport object and try to create a new session. Since there is already a session in progress, the attempt to create a session will always fail.
Expected Behavior

If the data stream errors during shutdown, it should not attempt to create a new data session.

Observed Behavior

When the data stream errors during shutdown, a new session can not be created.

OS & Version Information
  • iOS Version: 11.0
  • SDL iOS Version: 6.2
  • Testing Against: SYNC 3 TDK
Test Case, Sample Code, and / or Example App

The Swift example app in the SDL_iOS library.

@joeljfischer joeljfischer added the bug A defect in the library label May 17, 2019
@NicoleYarroch
Copy link
Contributor Author

Closed via PR #1248

@theresalech theresalech added this to To do in v6.3 via automation Jun 5, 2019
@theresalech theresalech added this to the 6.3.0 milestone Jun 5, 2019
@theresalech theresalech moved this from To do to Done in v6.3 Jun 5, 2019
@joeljfischer joeljfischer mentioned this issue Jun 24, 2019
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library
Projects
No open projects
v6.3
  
Done
Development

No branches or pull requests

3 participants