Bug 1980 - setting UnixSocketFd socket buffer size
setting UnixSocketFd socket buffer size
Product: dce
Classification: Unclassified
Component: other
PC Linux
: P5 normal
Assigned To: Hajime Tazaki
Depends on:
  Show dependency treegraph
Reported: 2014-09-10 17:41 EDT by Tom Henderson
Modified: 2015-05-26 06:57 EDT (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2014-09-10 17:41:57 EDT
in the UnixSocketFd constructor, there are two statements:

  m_socket->SetAttributeFailSafe ("SndBufSize", UintegerValue (126976));
  m_socket->SetAttributeFailSafe ("RcvBufSize", UintegerValue (126976));

that were added by Frederic in changeset:

changeset:   150:74b78e814bfd
user:        frederic.urbani@inria.fr
date:        Mon Sep 12 14:20:52 2011 +0200
summary:     Change socket buffer size to value more like in Linux Manual Pages.

However, when using e.g. iperf over an ns-3 TCP socket, for instance, this has the effect of later overwriting the value for RcvBufSize and SndBufSize on the socket (after the ns-3 attribute setter takes effect).

For ns-3 at least, these are not needed, since the default buffer sizes are very close to these values (131K).  So in my TCP testing, I have been commenting these out in my DCE.  Can they be deleted altogether, or are there socket types where these are still needed?
Comment 1 Hajime Tazaki 2015-05-26 06:57:54 EDT
I think it can be removed.

I fixed with the changeset.