This PR introduces the ability to resize TCP receive buffer after the connection is established, as well as corresponding constructor and getter function. This feature can help reduce memory footprint when establishing a lot of connections without sacrificing the maximum achievable throughput.
Current limitations and requirements include:
The new buffer must be larger than the length of remaining data in the current buffer.
The new buffer must be multiple of (1 << self.remote_win_shift), which is the window scaling negotiated in the handshake.
Only Socket<'static> can support replacing buffers.
Closes #927.
This PR introduces the ability to resize TCP receive buffer after the connection is established, as well as corresponding constructor and getter function. This feature can help reduce memory footprint when establishing a lot of connections without sacrificing the maximum achievable throughput.
Current limitations and requirements include:
Socket<'static>
can support replacing buffers.