Skip to content

Commit 3fee67a

Browse files
committed
Set alt-svc persist
1 parent 59d717a commit 3fee67a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ async fn accept_loop(
214214
let mut flood_control = if flood_control { Some(FloodControl::new()) } else { None };
215215
// Add h3 Alt-svc header
216216
if let Some(port) = h3_port {
217-
let value = HeaderValue::from_str(&format!("h3=\":{}\"", port)).unwrap();
217+
let value = HeaderValue::from_str(&format!("h3=\":{}\"; persist=1", port)).unwrap();
218218
let h3_header = SetResponseHeaderLayer::appending(ALT_SVC, value);
219219
router = router.layer(h3_header)
220220
}

0 commit comments

Comments
 (0)