Bug 835 - Unlimited receive queues in sockets == evil
Unlimited receive queues in sockets == evil
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: internet
ns-3-dev
All All
: P3 major
Assigned To: ns-bugs
:
: 832 (view as bug list)
Depends on: 833
Blocks:
  Show dependency treegraph
 
Reported: 2010-03-05 09:24 EST by Gustavo J. A. M. Carneiro
Modified: 2010-04-14 17:00 EDT (History)
2 users (show)

See Also:


Attachments
patch to fix? (1.78 KB, patch)
2010-03-05 23:50 EST, Tom Henderson
Details | Diff

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-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