|
From: | Bernhard 'Gustl' Bauer |
Subject: | Re: [lwip-users] http server and pbuf overflow |
Date: | Tue, 19 Jan 2010 07:59:28 +0100 |
User-agent: | Thunderbird 2.0.0.23 (Windows/20090812) |
Bob Brusa schrieb:
Am 18.01.2010, 12:11 Uhr, schrieb Bernhard 'Gustl' Bauer <address@hidden>: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.Gustl, what if you miss these last buffers sometimes? I would change the logic: If you get a first buffer check if you have some old stuff around and clean up.
Don't I get a tcp_err in this case? This would free pbuf. I'll try to verify this.
[Prev in Thread] | Current Thread | [Next in Thread] |