-
Notifications
You must be signed in to change notification settings - Fork 78
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
Add client launch retries #218
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
---|---|---|
|
@@ -34,4 +34,22 @@ | |
*/ | ||
- (void)launchTunnelWithOptions:(nonnull NSArray<NSString *> *)options startupBlock:(nullable void (^)(void))startupBlock; | ||
|
||
/** | ||
* Launch application synchronously waiting for the tunnel server connection to be established. | ||
* | ||
* @param options List of options to be passed on launch. | ||
* Valid options: | ||
* SBTUITunneledApplicationLaunchOptionResetFilesystem: delete app's filesystem sandbox | ||
* SBTUITunneledApplicationLaunchOptionDisableUITextFieldAutocomplete disables UITextField's autocomplete functionality which can lead to unexpected results when typing text. | ||
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. I would not copy/paste here the options, will become hard to maintain. Maybe you can just say something like 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. Options are listed in the twin method. I don't want to introduce discrepancies on the interface. |
||
* | ||
* @param retryThreshold Number of additional launch attempts if initial attempt fails (0 means no retries) | ||
* | ||
* @param retryInterval Time interval in seconds to wait between retry attempts | ||
* | ||
* @param startupBlock Block that is executed before connection is estabilished. | ||
* Useful to inject startup condition (user settings, preferences). | ||
* Note: commands sent in the completionBlock will return nil | ||
*/ | ||
- (void)launchTunnelWithOptions:(nonnull NSArray<NSString *> *)options retries:(NSInteger)retryThreshold retryInterval:(NSTimeInterval)retryInterval startupBlock:(nullable void (^)(void))startupBlock; | ||
|
||
@end |
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.
[question] Why remove this? Maybe needs to be moved higher, next to the
attemptLaunch
call?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.
Good catch, I will revert this back once we agree on the solution.