Forum Discussion
Altera_Forum
Honored Contributor
20 years agoDoes anyone know if this bug is also present in NIOS-II 1.1?
In the lwIP support forum several posts relating to some not yet solved pbuff issues can be read, including at least one that could produce a "pbuf_free: p->ref > 0" assertion. Working in an FTP client, based on lwIP + uC/OS-II, we found that several pbuff related issues could arise when deleting a connection while lwIP was still trying to send un-acked TCP packets. A network sniffer was a great help for detecting that this was the cause. Waiting for all the packets (in the connection) being send and acked (or timed-out) was the work-around. The connection object has two fields that are not NULL when packets are still pending (waiting to be sent or acked).