Skip to content

Commit f6670e8

Browse files
authored
Update tunnel_client.rs
1 parent a61b2aa commit f6670e8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/tunnel_client.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,11 +919,14 @@ async fn fire_batch(
919919
)
920920
.await;
921921
let sid_short = &script_id[..script_id.len().min(8)];
922+
let rtt = t0.elapsed();
923+
f.h2_open_timeout.store((rtt.as_secs() * 4 + 1).clamp(8, 20), Ordering::SeqCst);
924+
922925
tracing::info!(
923926
"batch: {} ops → {}, rtt={:?}",
924927
n_ops,
925928
sid_short,
926-
t0.elapsed()
929+
rtt
927930
);
928931

929932
match result {

0 commit comments

Comments
 (0)