Skip to content

Commit 4cc9cdf

Browse files
authored
fix(vector source): Remove the 4MB default for requests (vectordotdev#18186)
This was added in tonic 0.9 but caused a regression in Vector behavior. I think ideally this would be configurable, but I think in this case we can let users ask for it since the use-case for the `vector` source/sink is primarily such that the operator controls both sides and doesn't need to worry about DOS from misbehaving clients. Fixes: vectordotdev#17926 Signed-off-by: Jesse Szwedko <[email protected]>
1 parent 0c1cf23 commit 4cc9cdf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sources/vector/mod.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ impl SourceConfig for VectorConfig {
181181
acknowledgements,
182182
log_namespace,
183183
})
184-
.accept_compressed(tonic::codec::CompressionEncoding::Gzip);
184+
.accept_compressed(tonic::codec::CompressionEncoding::Gzip)
185+
// Tonic added a default of 4MB in 0.9. This replaces the old behavior.
186+
.max_decoding_message_size(usize::MAX);
185187

186188
let source =
187189
run_grpc_server(self.address, tls_settings, service, cx.shutdown).map_err(|error| {

0 commit comments

Comments
 (0)