Skip to content

Conversation

@stae1102
Copy link

@stae1102 stae1102 commented Aug 3, 2023

issue: #465

Test if the clients synchronize with each other by turning the server off and on again.

    let server_on_off_time = Duration::from_millis(1000);
    let server_on_off_repetition = 3;

    for _ in 0..server_on_off_repetition {
        let server = tokio::spawn(Dms::serve(
            Arc::clone(&server_dms),
            server_network_config.clone(),
        ));
        tokio::time::sleep(server_on_off_time).await;
        drop(server);
        tokio::time::sleep(server_on_off_time).await;
    }

In order to turn off and on the server, I just dropped server.

@stae1102 stae1102 requested a review from junha1 August 3, 2023 05:55
@stae1102 stae1102 self-assigned this Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant