Commit 9b8b371
fix: add retry delay when response.ok is false in ensureServerReady
When the health check returns an error status (401, 500, etc.), the loop
was immediately continuing to the next attempt without any delay. This
caused up to 5 rapid-fire requests in quick succession. The delay was
only being applied for the 'upgrading' status case.
Now applies the same UPGRADE_RETRY_DELAY_MS delay before retrying when
the response is not ok, consistent with the upgrading case.
Co-authored-by: Aiden Bai <aidenybai@users.noreply.github.com>1 parent 94006d7 commit 9b8b371
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| |||
0 commit comments