[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: Simon Goldschmidt
Subject: [lwip-devel] [bug #20287] tcp_output_nagle sends too early
Date: Thu, 28 Jun 2007 11:07:19 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20070515 Firefox/

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

Sorry, my phrase was a little easy to misunderstand.

'if MIN(available_window_space, data_available_to_send) >= MSS {'
is currently implemented as
'pcb->snd_queuelen > 1'
which is wrong.

I think available_window_space is taken care of by tcp_output, so we don't
need to test this in the tcp_output_nagle condition.

As for data_available_to_send >= MSS: unfortunately, we can't check it like
that unless we change data segmentation in tcp_enqueue: I don't think it
makes sense delaying a segment if we wouldn't fill it anyway. Nagle algorithm
should avoid sending many small segments and since we're not able to fill all
segments, we should send every 'full' segment (i.e. segment which isn't
filled further).

That's why I propose to send when pcb->unacked contains more than one

Is this correct?


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

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