Skip to content

Commit

Permalink
fix panic for http2 tunnels
Browse files Browse the repository at this point in the history
  • Loading branch information
erebe committed Sep 2, 2024
1 parent 878319b commit 8c2704d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tunnel/server/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ impl WsServer {
// http2
Some(b"h2") => {
let mut conn_builder = http2::Builder::new(TokioExecutor::new());
conn_builder.timer(TokioTimer::new());
if let Some(ping) = server.config.websocket_ping_frequency {
conn_builder.keep_alive_interval(ping);
}
Expand Down

0 comments on commit 8c2704d

Please sign in to comment.