KallDrexx / rust-media-libs

Rust based libraries for misc media functionality
Apache License 2.0
229 stars 58 forks source link

Serialization of larger payloads can lead to incorrect chunks #22

Closed pvheiningen closed 3 years ago

pvheiningen commented 3 years ago

This PR contains a fix for issue https://github.com/KallDrexx/rust-media-libs/issues/21.

It contains the following changes:

Gstreamer uses a default size of the TCP buffers of 2.5MB, I set the default sizes to 4 MB.

I'm not a Rust programmer, so let me know what you would like to see changed!

KallDrexx commented 3 years ago

What's really interesting about this is that the normal Rust TCP structs have no way to get or receive TCP buffer size. I wonder if I missed this because this is primarily a concern in event event driven networking, as I see the capability in both Tokio and Mio's APIs.

Thanks a ton for this!

pvheiningen commented 3 years ago

Thank you for a great library!