Bug 832 - PacketSocket has unlimited receive queue
PacketSocket has unlimited receive queue
Status: RESOLVED DUPLICATE of bug 835
Product: ns-3
Classification: Unclassified
Component: network
ns-3-dev
All All
: P3 major
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-04 11:07 EST by Gustavo J. A. M. Carneiro
Modified: 2010-03-08 12:03 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo J. A. M. Carneiro 2010-03-04 11:07:57 EST
It appears there's a receive queue in PacketSocket.  This queue is unlimited by default.

1. Unlimited by default is highly unrealistic;

2. Why is there a receive queue at all?  UDP sockets do not have RX queue...

This cost me days of debugging *sigh*  I had already filed a bug for TCP tx buffer being unlimited, but did not realize at the time that the packet socket had an equally evil infinite queue :-|
Comment 1 Gustavo J. A. M. Carneiro 2010-03-04 11:16:39 EST
And because of missing NS_OBJECT_ENSURE_REGISTERED and packet-socket.h not being a public header, I can't even change the default value of ns3::PacketSocket::RcvBufSize from Python.  Great.
Comment 2 Gustavo J. A. M. Carneiro 2010-03-05 09:23:12 EST
I was wrong about UDP, it also has a receive buffer, also unlimited by default.
Comment 3 Gustavo J. A. M. Carneiro 2010-03-08 12:03:32 EST

*** This bug has been marked as a duplicate of bug 835 ***