[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] how is the case "write more than sendbuf"?

From: Kieran Mansley
Subject: Re: [lwip-users] how is the case "write more than sendbuf"?
Date: Tue, 31 Aug 2010 09:07:55 +0100

On Mon, 2010-08-30 at 16:22 +0700, PHAM ANH THIEN wrote:

> If my network application send too fast, then cause the case "don't
> try to write more than sendbuf" (in function do_writemore, api_msg.c).
> What i undestand this case my application send too fast and lwip
> slowly receive ACK so that it could not quickly release sendbuf then
> cause the size of sendbuf too small.
> Do i understand correctly?

I'm not sure - the first paragraph above is a little hard to decode.

> As my application encounter this case, it hangs and can not send data
> anymore.
> Anyone faced this case, pls advise!

If you get an error when trying to write because the send buffer is full
you simply have to wait and try again later.  You could use the
tcp_poll() API to help you do this if you don't have a more convenient
way to do so.


reply via email to

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