smoltcp icon indicating copy to clipboard operation
smoltcp copied to clipboard

[Feature Request] Resize TCP socket buffer dynamically after TCP socket has been created

Open XOR-op opened this issue 9 months ago • 5 comments

Currently, the buffer for TCP socket needs to be preallocated in socket::tcp::Socket::new() and I found nowhere to change its size. However, a configurable window size is necessary to achieve a balance between good bandwidth and low memory footprint. I notice that TCP window scaling (RFC 1323) is advertised to be implemented but it seems it's only properly implemented for the remote endpoint. Can this feature be implemented in local side?

XOR-op avatar May 12 '24 03:05 XOR-op