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