Hi,

I'm using lwip 1.3.0 and sometimes I have a pbuf overflow.

I'm not sure I understand the pbuf concept. I have some data transfers that exceed 1 tcp packet.

Every time http_recv is called I check if this is the 1st packet. If it is I set a pointer to this pbuf and do not free this pbuf. If it is not the 1st packet I store the data and free this pbuf.

Then I check if this is the last packet. If it is I process all data and then free the pbuf of the 1st packet.

When there is an tcp_err during a transfer I do free the 1st packet to.

Is there anything wrong with this?

TIA

Gustl






_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to