diff --git a/Cargo.toml b/Cargo.toml index cd54c1c..95ad63a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,8 +17,8 @@ http3 = ["quinn", "h3", "h3-quinn"] [dependencies] env_logger = "0.9.0" -anyhow = "1.0.58" -clap = { version = "3.2.15", features = ["std", "cargo", "wrap_help"] } +anyhow = "1.0.59" +clap = { version = "3.2.16", features = ["std", "cargo", "wrap_help"] } futures = { version = "0.3.21", features = ["alloc", "async-await"] } hyper = { version = "0.14.20", default-features = false, features = [ "server", @@ -48,7 +48,7 @@ hyper-rustls = { version = "0.23.0", default-features = false, features = [ "http1", "http2", ] } -bytes = "1.2.0" +bytes = "1.2.1" quinn = { version = "0.8.3", optional = true } h3 = { path = "./h3/h3/", optional = true } h3-quinn = { path = "./h3/h3-quinn/", optional = true } diff --git a/src/proxy/proxy_h3.rs b/src/proxy/proxy_h3.rs index ba81d61..c7ad3d3 100644 --- a/src/proxy/proxy_h3.rs +++ b/src/proxy/proxy_h3.rs @@ -95,7 +95,10 @@ where debug!("HTTP/3 incoming request body: remaining {}", body.remaining()); size += body.remaining(); if size > max_body_size { - error!("Exceeds max request body size for HTTP/3: received {}", size); + error!( + "Exceeds max request body size for HTTP/3: received {}, maximum_allowd {}", + size, max_body_size + ); return Err(RpxyError::Proxy("Exceeds max request body size for HTTP/3".to_string())); } // create stream body to save memory, shallow copy (increment of ref-count) to Bytes using copy_to_bytes