Skip to content

Commit

Permalink
Increase recovery delay, seems to fix underlying probe issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jonlamb-gh committed Sep 23, 2024
1 parent 58003ac commit 7168101
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fn manager_thread(
warn!(id = %recovery_state.proxy_session_id, error = %e, "Session recovery failed");

// TODO cfg or recovery thread with time handling
std::thread::sleep(std::time::Duration::from_millis(10));
std::thread::sleep(std::time::Duration::from_millis(100));

// Try again
mngr.op_tx_for_sessions
Expand Down
2 changes: 1 addition & 1 deletion src/rtt_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ pub fn spawn(args: SpawnArgs) -> io::Result<JoinHandle> {

if should_recover {
// TODO cfg or recovery thread with time handling
thread::sleep(Duration::from_millis(10));
thread::sleep(Duration::from_millis(100));

shutdown_channel
.send(Operation::RecoverSession(RecoveryState {
Expand Down

0 comments on commit 7168101

Please sign in to comment.