[Ns-bugs] [Bug 131] Sending data in the TCP send callback causes infinite recursion

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Wed Feb 6 08:55:57 PST 2008


http://www.nsnam.org/bugzilla/show_bug.cgi?id=131





------- Comment #6 from gjcarneiro at gmail.com  2008-02-06 11:55 -------
(In reply to comment #5)
[...]
> I actually proposed that you are notified when data is removed from the tx
> buffer after it was acked, that is, when there is room in the tx buffer. So, it
> seems that we agree.

We _almost_ agree.  The events "data is removed from the tx buffer" and "there
is room in the tx buffer" are not completely coincidental; there _is_ a
difference.

In real BSD sockets there is a buffer of a certain maximum size between
application and socket.  In BSD sockets, applications can send to the socket
buffer a certain ammount of traffic even before any previous traffic is
acknowledged and removed from the tx buffer.  When a socket is connected, it
enters the "there is room in the tx buffer" state immediately, even before any
"data is removed from the tx buffer" event.  It's a subtle difference, sure,
but I can't be sure it is not significant, and it does not sound like
confusing/merging the two states will simplify anything for the programmer
(well, maybe it will not make life easier for Raj, but that's a different story
:).


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list