[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-members] TCP question about tcp_output.c/tcp_enqueue()
From: |
Kieran Mansley |
Subject: |
Re: [lwip-members] TCP question about tcp_output.c/tcp_enqueue() |
Date: |
Wed, 8 Jan 2003 10:37:37 +0000 (GMT) |
On Wed, 8 Jan 2003 address@hidden wrote:
> Hello,
>
> I'm tracing a TCP performance issue (web serving using httpd.c is very
> slow).
>
> Can someone explain to me what the "while (queue == NULL" does in
>
> tcp_output.c/tcp_enqueue()
> {
> ...
> while(queue == NULL || left > 0) {
> ...
Looks to me like it's doing nothing, as queue will always be non-NULL by
the end of the loop. It does ensure the loop gets executed if left = 0
before the loop though (because queue is always NULL before the loop).
ie. It makes it equivalent to:
do{
...
}while(left > 0);
but I'm not sure if that is intended or just a side effect.
Kieran