Skip to content

Commit

Permalink
chore: Refactor code in local/utils.rs for better readability and mai…
Browse files Browse the repository at this point in the history
…ntainability
  • Loading branch information
arloor committed Sep 4, 2024
1 parent a334768 commit 7bea2bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/shadowsocks-service/src/local/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ where
// Protocols like FTP, clients will wait for servers to send Welcome Message without sending anything.
//
// Wait at most 500ms, and then sends handshake packet to remote servers.
#[cfg(not(feature = "https-tunnel"))]
{
let mut buffer = [0u8; 8192];
match time::timeout(Duration::from_millis(500), plain.read(&mut buffer)).await {
Expand Down

0 comments on commit 7bea2bb

Please sign in to comment.