fix: raise max_headers in ws handshake to 128 (#2366)

This commit is contained in:
Luna Yao
2026-06-21 15:54:07 +02:00
committed by GitHub
parent 5efbc8587f
commit 5ea6766238
3 changed files with 5 additions and 4 deletions
+3 -1
View File
@@ -118,6 +118,7 @@ impl WsTunnelListener {
let (request, stream) = ServerBuilder::new()
.limits(Limits::unlimited())
.max_headers(128)
.accept(stream)
.await?;
@@ -252,7 +253,8 @@ impl WsTunnelConnector {
),
};
let c = ClientBuilder::from_uri(http::Uri::try_from(addr.to_string()).unwrap());
let c = ClientBuilder::from_uri(http::Uri::try_from(addr.to_string()).unwrap())
.max_headers(128);
let stream: MaybeTlsStream<TcpStream> = if is_wss {
init_crypto_provider();
let tls_conn =