[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #20287] tcp_output_nagle sends too early

From: Kieran Mansley
Subject: [lwip-devel] [bug #20287] tcp_output_nagle sends too early
Date: Thu, 28 Jun 2007 10:50:45 +0000
User-agent: Opera/9.21 (X11; Linux i686; U; en)

Follow-up Comment #2, bug #20287 (project lwip):

>From your description I think you've slightly misunderstood the nagle
algorithm (or made a typo in your description!)  I've not looked at the patch
to see which it is, but as I understand nagle can be summarised as:

if MIN(available_window_space, data_available_to_send) >= MSS {
else {
  if(unacked_queue_is_empty()) {
  else {

I don't think the ordering of the two "if" statements is important, as long
as the second "else" only happens if both are false.

The difference to your description ("the nagle algorithm should only send
unsent data (if unacked is empty) when there is a full segment to send") is
that nagle should *always* send unsent data if the unacked queue is empty.

I don't doubt that the current version doesn't quite fit with that
description, but want to make sure that any replacement does.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]