logstash-plugins / logstash-codec-protobuf

Codec plugin for parsing Protobuf messages
Apache License 2.0
26 stars 16 forks source link

Add length-delimited option to encoder and decoder #48

Open arman1371 opened 4 years ago

arman1371 commented 4 years ago

Some databases (like clickhouse) just accept length-delimited messages and there isn't any option to send or receive length-delimited messages. I added an option to support encoding and decoding of length-delimited messages.

jorgelbg commented 4 years ago

@arman1371 thank you for the PR!

We’ve created issue #58 to track the underline support for length-delimited messages, as this has been mentioned a couple of times. It would be great if your PR contained some test cases to ensure that the feature works as expected.