fix panic for http2 tunnels
This commit is contained in:
parent
878319b027
commit
8c2704d9d2
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue