Skip to content

Commit dd5002b

Browse files
committed
chore: revert pre-warm comment and some syntaxt style problem
1 parent 50fd62d commit dd5002b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/proxy_server.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ impl ProxyServer {
154154
"Listening SOCKS5 on {} — xray / Telegram / app-level SOCKS5 clients use this.",
155155
socks_addr
156156
);
157-
157+
// Pre-warm the outbound connection pool so the user's first request
158+
// doesn't pay a fresh TLS handshake to Google edge. Best-effort;
159+
// failures are logged and ignored.
158160
let warm_fronter = self.fronter.clone();
159161
tokio::spawn(async move {
160162
warm_fronter.warm(3).await;

0 commit comments

Comments
 (0)