mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 21:41:37 +00:00
Increase backoff duration and maximum retry attempts in server initialization
- Updated the `BASE_DURATION_MS` constant from 30.0 to 100.0 to allow for longer wait times during server startup. - Increased the `MAX_TRIES` constant from 5 to 10 to provide more attempts for the server to come online before failing. These changes aim to improve the reliability of server initialization by allowing for more extended backoff periods and retries.
This commit is contained in:
parent
d94596388d
commit
d252b13820
1 changed files with 4 additions and 4 deletions
|
|
@ -281,9 +281,9 @@ impl TestServeSession {
|
||||||
/// backoff. If the process dies with `AddrInUse`, respawns with a new
|
/// backoff. If the process dies with `AddrInUse`, respawns with a new
|
||||||
/// random port (up to `MAX_PORT_RETRIES` times).
|
/// random port (up to `MAX_PORT_RETRIES` times).
|
||||||
pub fn wait_to_come_online(&mut self) -> ServerInfoResponse {
|
pub fn wait_to_come_online(&mut self) -> ServerInfoResponse {
|
||||||
const BASE_DURATION_MS: f32 = 30.0;
|
const BASE_DURATION_MS: f32 = 100.0;
|
||||||
const EXP_BACKOFF_FACTOR: f32 = 1.3;
|
const EXP_BACKOFF_FACTOR: f32 = 1.3;
|
||||||
const MAX_TRIES: u32 = 5;
|
const MAX_TRIES: u32 = 10;
|
||||||
const MAX_PORT_RETRIES: u32 = 3;
|
const MAX_PORT_RETRIES: u32 = 3;
|
||||||
|
|
||||||
let mut port_retries = 0u32;
|
let mut port_retries = 0u32;
|
||||||
|
|
@ -976,9 +976,9 @@ pub fn fresh_rebuild_read(project_path: &Path) -> NormalizedInstance {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const BASE_DURATION_MS: f32 = 30.0;
|
const BASE_DURATION_MS: f32 = 100.0;
|
||||||
const EXP_BACKOFF_FACTOR: f32 = 1.3;
|
const EXP_BACKOFF_FACTOR: f32 = 1.3;
|
||||||
const MAX_TRIES: u32 = 5;
|
const MAX_TRIES: u32 = 10;
|
||||||
const MAX_PORT_RETRIES: u32 = 3;
|
const MAX_PORT_RETRIES: u32 = 3;
|
||||||
|
|
||||||
let working_dir = get_working_dir_path();
|
let working_dir = get_working_dir_path();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue