Page 1 of 1

assertion "unsent_oversize mismatch (pcb->unsent is NULL)" failed:

Posted: Sun Oct 29, 2017 6:57 pm
by BlackEdder
Every so often (once every couple of hours) tcp_write fails with: assertion "unsent_oversize mismatch (pcb->unsent is NULL)" failed. The same code works fine on my ESP8266 boards.

Re: assertion "unsent_oversize mismatch (pcb->unsent is NULL)" failed:

Posted: Sun Oct 29, 2017 9:53 pm
by ESP_igrr
tcp_write can only be called from LwIPs own task, as raw API is not thread-safe.
Calling raw API from the application used to work with ESP8266 non-OS SDK, which was single threaded. But FreeRTOS is not.

Re: assertion "unsent_oversize mismatch (pcb->unsent is NULL)" failed:

Posted: Wed Nov 01, 2017 10:59 am
by BlackEdder
Thank you, I have now been able to solve the issue!