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

BlackEdder
Posts: 4
Joined: Sun Oct 29, 2017 2:20 pm

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

Postby BlackEdder » Sun Oct 29, 2017 6:57 pm

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.

ESP_igrr
Posts: 1690
Joined: Tue Dec 01, 2015 8:37 am

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

Postby ESP_igrr » Sun Oct 29, 2017 9:53 pm

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.

BlackEdder
Posts: 4
Joined: Sun Oct 29, 2017 2:20 pm

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

Postby BlackEdder » Wed Nov 01, 2017 10:59 am

Thank you, I have now been able to solve the issue!

Who is online

Users browsing this forum: No registered users and 1 guest