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 mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to