[Pkg-telepathy-commits] [libnice] 129/265: pseudotcp: Don't change the receive buffer size if it hasnt changed

Simon McVittie smcv at debian.org
Wed May 14 12:05:00 UTC 2014


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch debian
in repository libnice.

commit 6814dd978be8103ec5f5a8c3d570fbfef85163da
Author: Olivier Crête <olivier.crete at collabora.com>
Date:   Thu Jan 30 23:08:36 2014 -0500

    pseudotcp: Don't change the receive buffer size if it hasnt changed
---
 agent/pseudotcp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/agent/pseudotcp.c b/agent/pseudotcp.c
index 02a14bd..f93e4fa 100644
--- a/agent/pseudotcp.c
+++ b/agent/pseudotcp.c
@@ -1828,6 +1828,9 @@ resize_receive_buffer (PseudoTcpSocket *self, guint32 new_size)
   gboolean result;
   gsize available_space;
 
+  if (priv->rbuf_len == new_size)
+    return;
+
   // Determine the scale factor such that the scaled window size can fit
   // in a 16-bit unsigned integer.
   while (new_size > 0xFFFF) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-telepathy/libnice.git



More information about the Pkg-telepathy-commits mailing list