logo       

Re: HTTP Server traffic: msg#00012

network.lwip.general

Subject: Re: HTTP Server traffic


/* ---------- Pbuf options ---------- */
/* PBUF_POOL_SIZE: the number of buffers in the pbuf pool. */
#define PBUF_POOL_SIZE 4
/* PBUF_POOL_BUFSIZE: the size of each pbuf in the pbuf pool. */
#define PBUF_POOL_BUFSIZE 1500
This is very inefficient use of memory.
Not sure, but only 4 pbufs might cause the problems you are seeing.

Higher PBUF_POOL_SIZE and lower PBUF_POOL_BUFSIZE will give you more packet buffers to work with without costing you any extra RAM.
The disadvantage is of course that you will have to handle packets fragmented into pbuf chains, but in a system with limited RAM that is a minor inconvenience compared to the amounts of RAM it saves.

/Timmy
_______________________________________________
lwip-users mailing list
lwip-users-qX2TKyscuCcdnm+yROfE0A@xxxxxxxxxxxxxxxx
http://lists.nongnu.org/mailman/listinfo/lwip-users
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise