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
Retry connect/disconnect after timeout? #35
Comments
I hear your frustration with timeouts but it is going to be really hard for us to to guess when sc is responsive or not without false positives. Have you had a chance to investigate how to detect when things are timing out? |
One common case is when I get this in the console output:
Would it be possible to detect this message in the output and retry if found? |
I just published v0.10.3 which should handle that error output properly. You then could use something like async.retry(3, launchSauceConnect.bind(null, scOptions), function (err) {
if (err) {
throw new Error("Sauce Connect failed to launch after 3 retries, error: " + err.message);
}
// sauce connect ready
}) |
Still seeing one more instance of an unhandled error:
This one happens rarely, but often enough to be noticeable, when running multiple tunnels. PR incoming... |
Sometimes SauceConnect just hangs, non-responsive on either the connection or disconnection process. Would it be possible to set a timeout, and retry the connect/disconnect process if no response received?
The text was updated successfully, but these errors were encountered: