lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] LWIP crash


From: Simon Goldschmidt
Subject: Re: [lwip-users] LWIP crash
Date: Fri, 07 Sep 2012 10:22:41 +0200

Sylvain Rochet wrote:
> > As the application is continuously sending data, do_write continuously
> > calls do_writemore, which internally calls tcp_write. At some point
> > tcp_write returns ERR_MEM and do_write waits on semaphore op_completed.
> > 
> > [...]
> > 
> >  What could be the reason for the crash in the first case,  is it i am
> > using lwip threads incorrectly ?
> 
> It looks like you are using the raw API with threads, raw API is -NOT- 
> thread safe, you have to use netconn or socket API.

The functions do_write() and do_writemore are part of the netconn API (the part 
that runs in tcpip_thread), so I think he's using netconn- or socket API.

Simon



reply via email to

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