fix panic for http2 tunnels

This commit is contained in:
Σrebe - Romain GERARD 2024-09-02 14:15:46 +02:00
parent 878319b027
commit 8c2704d9d2
No known key found for this signature in database
GPG key ID: 7A42B4B97E0332F4

View file

@ -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);
}