Bug 835

Summary: Unlimited receive queues in sockets == evil
Product: ns-3 Reporter: Gustavo J. A. M. Carneiro <gjcarneiro>
Component: internetAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: major CC: jpelkey, tomh
Priority: P3    
Version: ns-3-dev   
Hardware: All   
OS: All   
Bug Depends on: 833    
Bug Blocks:    
Attachments: patch to fix?

Description Gustavo J. A. M. Carneiro 2010-03-05 09:24:51 EST
I later realized UdpSocket had the same problem.  Unlimited queues are evil.

+++ This bug was initially created as a clone of Bug #832 +++

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 Tom Henderson 2010-03-05 23:50:56 EST
Created attachment 780 [details]
patch to fix?

This does not change test or regression output.
Comment 2 Gustavo J. A. M. Carneiro 2010-03-08 12:03:06 EST
(In reply to comment #1)
> Created an attachment (id=780) [details]
> patch to fix?

+1

Re-titling to make it more generic.
Comment 3 Gustavo J. A. M. Carneiro 2010-03-08 12:03:32 EST
*** Bug 832 has been marked as a duplicate of this bug. ***
Comment 4 Josh Pelkey 2010-04-14 17:00:07 EDT
changeset ebe303de4725