Skip to content

Commit

Permalink
0ms delay by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jprochazk committed Oct 23, 2024
1 parent 4081659 commit 7ab9734
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ewebsock/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ impl Default for Options {
max_incoming_frame_size: 64 * 1024 * 1024,
additional_headers: vec![],
subprotocols: vec![],
delay_blocking: std::time::Duration::from_millis(10), // default value 10ms,
// let the OS schedule something else, otherwise busy-loop
// TODO: use polling on native instead
delay_blocking: std::time::Duration::from_millis(0),
}
}
}
Expand Down

0 comments on commit 7ab9734

Please sign in to comment.