[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] http server and pbuf overflow

From: address@hidden
Subject: Re: [lwip-users] http server and pbuf overflow
Date: Mon, 18 Jan 2010 17:41:14 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv: Gecko/20091204 Thunderbird/3.0

Bernhard 'Gustl' Bauer wrote:

I'm using lwip 1.3.0 and sometimes I have a pbuf overflow.
First of all, only to make sure what you mean, are you referring to the PBUF_POOL running out of pbufs?
I'm not sure I understand the pbuf concept.
You have to call pbuf_free() on every pbuf chain passed to your application (via the receive callback). If can chain two chains together using pbuf_cat(), you only have to call pbuf_free() on the head of the chain.
  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.
What do you mean by 'store the data and free this pbuf'?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]