[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Long(er) delay to PC ACK when serving images
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] Long(er) delay to PC ACK when serving images |
Date: |
Mon, 09 Oct 2006 10:02:49 +0100 |
On Sat, 2006-10-07 at 01:01 +0200, Mateusz Plocinski wrote:
> Hi,
> I'm not an tcpip expert too, but I've worked with lwip for past few weeks. I
> had exactly the same problem like yours, also using SAM7X256 processor.
> I solved the problem changing following thing in api_msg.c:
>
> /* This is the Nagle algorithm: inhibit the sending of new TCP
> segments when new outgoing data arrives from the user if any
> previously transmitted data on the connection remains
> unacknowledged. */
>
> // if(err == ERR_OK && (msg->conn->pcb.tcp->unacked == NULL ||
> (msg->conn->pcb.tcp->flags & TF_NODELAY)) ) {
> tcp_output(msg->conn->pcb.tcp);
> // }
A better solution would be the one mentioned in this post to the mailing
list:
http://lists.gnu.org/archive/html/lwip-users/2006-09/msg00060.html
Hopefully this change (although probably not the enqueue problem
mentioned there) will make it into the main tree soon.
Thanks
Kieran
[lwip-users] Re: Long(er) delay to PC ACK when serving images, Alan Lamphier, 2006/10/10