Commit 6814dd97 authored by Olivier Crête's avatar Olivier Crête 👻
Browse files

pseudotcp: Don't change the receive buffer size if it hasnt changed

parent 919b2c46
......@@ -1828,6 +1828,9 @@ resize_receive_buffer (PseudoTcpSocket *self, guint32 new_size)
gboolean result;
gsize available_space;
if (priv->rbuf_len == new_size)
// Determine the scale factor such that the scaled window size can fit
// in a 16-bit unsigned integer.
while (new_size > 0xFFFF) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment