Skip to content

Commit

Permalink
[testing] Enhancement: Set linger to 1 second
Browse files Browse the repository at this point in the history
  • Loading branch information
iyzhang committed May 8, 2024
1 parent 0ec985e commit 10963eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/tcp-close/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ use demikernel::{
//======================================================================================================================

const DEFAULT_TIMEOUT: Duration = Duration::from_secs(30);
const DEFAULT_LINGER: Duration = Duration::from_secs(10);
const DEFAULT_LINGER: Duration = Duration::from_secs(1);

//======================================================================================================================
// main
Expand Down
2 changes: 1 addition & 1 deletion examples/tcp-echo/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ mod server;
//======================================================================================================================

const DEFAULT_TIMEOUT: Duration = Duration::from_secs(30);
const DEFAULT_LINGER: Duration = Duration::from_secs(10);
const DEFAULT_LINGER: Duration = Duration::from_secs(1);

//======================================================================================================================
// Program Arguments
Expand Down
2 changes: 1 addition & 1 deletion examples/tcp-wait/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use ::std::time::Duration;
//======================================================================================================================

const DEFAULT_TIMEOUT: Duration = Duration::from_secs(30);
const DEFAULT_LINGER: Duration = Duration::from_secs(10);
const DEFAULT_LINGER: Duration = Duration::from_secs(1);

//======================================================================================================================
// main
Expand Down

0 comments on commit 10963eb

Please sign in to comment.