lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Problem with shell and memory leaks


From: Konrad, Guido
Subject: [lwip-users] Problem with shell and memory leaks
Date: Mon, 19 May 2003 15:26:14 +0200

Hi all,

I am still migrating from 0.5.3 to 0.6.2 and face again problems concerning
shell and memory managment. 

When I connect to Adams shell, I don't see "lwIP simple interactive
shell..." since the first buffer is received with netconn_recv after
pressing return in the telnet shell. Also the CR LF is missing, all
characters are given out in one line. Has something changed in the interface
behaviour of 0.6.2.

Another thing is a possible bug in the MEMP_PBUF allocation/freeing. Every
time I press return in the telnet shell or every time I receive an HTTP page
(with httpd.c) the number of allocated MEMP_PBUF increases but do not
decrease any more. Looking in the code one can find a pbuf_free after every
"ip_output" but not in the call in function "tcp_output_segment". And
exactly this function is called and this MEMP_PBUF piece stays unfreed. Is
this a bug or what must I do in the application to let the stack call
"tcp_seg_free"?

I really appreciate your help. What can I do to solve this problem? 

-- Guido Konrad




reply via email to

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