[lwip-users] Debugging a hang in an lwIP-based application

2019-02-21 Thread Freddie Chopin
Hello! For the past few days I have been debugging a hang in one of my projects which uses lwIP and my C++ RTOS - http://distortos.org/ The networking part of the application is rather simple and consists of a single functionality (using 2 threads synchronized with mutexes), which uses netconn AP

Re: [lwip-users] Debugging a hang in an lwIP-based application

2019-02-22 Thread Sergio R. Caprile
Unfortunately I only know the RAW API and can't help you further. Did you check the basics ?: - core lwIP runs in a single thread. If your Ethernet is handled in another thread, you don't call any lwIP functions from there, except for the pbuf allocation/free functions; you queue your packets and t

Re: [lwip-users] Debugging a hang in an lwIP-based application

2019-02-25 Thread Freddie Chopin
On Fri, 2019-02-22 at 10:23 -0300, Sergio R. Caprile wrote: > Unfortunately I only know the RAW API and can't help you further. Did > you check the basics ?: > - core lwIP runs in a single thread. If your Ethernet is handled in > another thread, you don't call any lwIP functions from there, except

Re: [lwip-users] Debugging a hang in an lwIP-based application

2019-02-26 Thread tomek wilkxt
> While we're at it, I have one more question. After the fix described > above the application is running much much better and the connection > looks a lot more stable/reliable. But I do still see some rare > occurrences of TCP retransmissions and duplicated ACKs in Wireshark > (like maybe once/twi