You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
usync-ping reports failure when it connects on the last attempt #20
Run this against a healthy site, using uSync.Cli 17.0.0:
uSyncCli usync-ping --retrys 1
It prints Failed to ping server and exits with 1. With --retrys 3 against the same site, it connects first time and exits with 0.
The same thing happens with the default of 10 retries if the server first responds on the tenth attempt, which is the case a script waiting for a site to boot cares about.
Fix
Set a connected flag when AttemptConnection succeeds, and use it for both the message and the exit code instead of comparing count to retries.
Fixed in #22 - usync-ping now reports success (and exits with 0) when the site responds on the last retry, so a script waiting for a site to boot gets the right result. It'll be in the next release of uSync.Cli.
Activity
KevinJump commentedon Nov 6, 2026
Fixed in #22 -
usync-pingnow reports success (and exits with 0) when the site responds on the last retry, so a script waiting for a site to boot gets the right result. It'll be in the next release of uSync.Cli.Kevin