Skip to content

Commit

Permalink
Disable HTTP/2 due to COMPRESSION_ERROR on client side (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
chitoku-k authored Nov 18, 2023
1 parent d0a9b75 commit 4f496b5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/application/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use hyper::server::{conn::AddrIncoming, Server};
use {
hyper::server::conn::Http,
notify::Watcher,
openssl::ssl::{self, AlpnError, SslContext, SslFiletype, SslMethod},
openssl::ssl::{SslContext, SslFiletype, SslMethod},
tls_listener::TlsListener,
tokio::{
sync::mpsc::unbounded_channel,
Expand Down Expand Up @@ -87,10 +87,6 @@ fn acceptor(tls_cert: &str, tls_key: &str) -> anyhow::Result<SslContext> {
builder
.set_private_key_file(tls_key, SslFiletype::PEM)
.context("error loading TLS private key")?;
builder
.set_alpn_select_callback(|_, client| {
ssl::select_next_proto(b"\x02h2\x08http/1.1", client).ok_or(AlpnError::NOACK)
});

Ok(builder.build())
}
Expand Down

0 comments on commit 4f496b5

Please sign in to comment.