Bug 832

Summary: PacketSocket has unlimited receive queue
Product: ns-3 Reporter: Gustavo J. A. M. Carneiro <gjcarneiro>
Component: networkAssignee: ns-bugs <ns-bugs>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: P3    
Version: ns-3-dev   
Hardware: All   
OS: All   

Description Gustavo J. A. M. Carneiro 2010-03-04 11:07:57 UTC
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 UTC
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 UTC
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 UTC

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