From 863bbe18e41484369ca2fd24cc06e01c44863757 Mon Sep 17 00:00:00 2001 From: "(on company time)" <_@_> Date: Wed, 14 Sep 2022 14:54:42 -0500 Subject: [PATCH] :arrow_up: update hyper dep and allow HTTP/2 for the relay This makes it easier for a gateway like Nginx to terminate TLS for a PTTH relay without needing an entire TCP connection for each connected PTTH server. --- Cargo.lock | 10 +++++----- crates/ptth_relay/Cargo.toml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index af842dc..c95212f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -636,9 +636,9 @@ dependencies = [ [[package]] name = "httparse" -version = "1.5.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acd94fdbe1d4ff688b67b04eee2e17bd50995534a61539e45adfefb45e5e5503" +checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904" [[package]] name = "httpdate" @@ -648,9 +648,9 @@ checksum = "6456b8a6c8f33fee7d958fcd1b60d55b11940a79e63ae87013e6d22e26034440" [[package]] name = "hyper" -version = "0.14.13" +version = "0.14.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15d1cfb9e4f68655fa04c01f59edb405b6074a0f7118ea881e5026e4a1cd8593" +checksum = "02c929dc5c39e335a03c405292728118860721b10190d98c2a0f0efd5baafbac" dependencies = [ "bytes", "futures-channel", @@ -661,7 +661,7 @@ dependencies = [ "http-body", "httparse", "httpdate", - "itoa 0.4.8", + "itoa 1.0.1", "pin-project-lite", "socket2 0.4.4", "tokio", diff --git a/crates/ptth_relay/Cargo.toml b/crates/ptth_relay/Cargo.toml index a44c080..28dae70 100644 --- a/crates/ptth_relay/Cargo.toml +++ b/crates/ptth_relay/Cargo.toml @@ -20,7 +20,7 @@ futures = "0.3.7" futures-util = "0.3.8" handlebars = "3.5.3" http = "0.2.3" -hyper = { version = "0.14.4", features = ["http1", "server", "stream", "tcp"] } +hyper = { version = "0.14.20", features = ["http1", "http2", "server", "stream", "tcp"] } itertools = "0.9.0" rand = "0.8.3" rmp-serde = "0.15.5"