lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] tcp_write() keeps returning ERR_MEM indefinitely once


From: Kentaro Yamamoto
Subject: Re: [lwip-users] tcp_write() keeps returning ERR_MEM indefinitely once the buffer is filled
Date: Thu, 3 Jun 2010 12:15:53 -0400

Hi Kieran,

Thanks for the suggestion.  It actually turned out that executing
tcp_write continuously in a blocking manner in my tcp_recv callback
function was the cause.  Now I enqueue segments in a non-blocking
manner outside tcp_recv using a tcp_sent callback function.  This
works fine.

Thanks,

Kentaro

On Thu, Jun 3, 2010 at 4:39 AM, Kieran Mansley <address@hidden> wrote:
> On Wed, 2010-06-02 at 21:13 -0400, Kentaro Yamamoto wrote:
>> Hi all,
>>
>> I am trying to transfer a large amount of data from a microcontroller
>> via TCP/IP.  What I do is to keep executing tcp_write() until it
>> returns ERR_MEM.  The problem is that once tcp_write() returns
>> ERR_MEM, it keeps returning ERR_MEM no matter how long I wait..  Am I
>> missing something?  I am using lwip 1.3.1.
>
> Do you also have a call to tcp_output()?  tcp_write() will only queue
> the packets, tcp_output() will get them going onto the wire.
>
> Kieran
>
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>



-- 
Kentaro Yamamoto
address@hidden



reply via email to

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