FactbirdHQ / ublox-short-range-rs

A driver crate for the entire u-blox short range family in Rust
6 stars 2 forks source link

fix(TLS): add the ability to set the TLS buffer sizes on the module #52

Closed unizippro closed 1 year ago

unizippro commented 1 year ago

This fixes an issue regarding stream applications using the driver. Without this the driver will, when using TLS with a client side certificate, stall the connection, as it overruns some buffer and locks its TCP window size to 0.

MathiasKoch commented 1 year ago

I think I would prefer this to be two separate config entries for tls_in_buffer_size: <usize> and tls_out_buffer_size: Option<usize>, so users can actually determine what size they want to use, rather than default or MAX?