[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RE : [lwip-devel] Move the nagle algorithm to core instead of api
From: |
Kieran Mansley |
Subject: |
Re: RE : [lwip-devel] Move the nagle algorithm to core instead of api |
Date: |
Wed, 20 Jun 2007 08:45:41 +0100 |
On Wed, 2007-06-20 at 09:41 +0200, Frédéric BERNON wrote:
> Why doesn't directly change tcp_write to include this part :
>
>
> if(err == ERR_OK && (msg->conn->pcb.tcp->unacked == NULL ||
>
> (msg->conn->pcb.tcp->flags & TF_NODELAY) ||
>
> (msg->conn->pcb.tcp->snd_queuelen) > 1)) {
>
> err = tcp_output(msg->conn->pcb.tcp);
>
> }
>
>
> Without adding any function?
I like Simon's idea of adding a wrapper function. Often people want to
avoid or disable the nagle algorithm and that will provide a nice neat
way of doing it.
Kieran