lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Problem with tcp_listen


From: Christian Fuchs
Subject: [lwip-users] Problem with tcp_listen
Date: Wed, 20 Mar 2013 15:59:13 +0100

Hello,

 

I’m using lwip 1.3.2 to implement a FTP server with passive mode. The data connection for a FTP server gets opened and closed very often.

And here comes the problem I have: I can put the pcb in listen state only a few times (MEMP_NUM_TCP_PCB_LISTEN). After this I get the error message “memp_malloc: out of memory in pool TCP_PCB_LISTEN”. The only place I’ve found a memp_free for MEMP_TCP_PCB_LISTEN is in tcp_close function but only if the pcb is in listen state. When I call tcp_close to close the FTP data connection, the pcb is in state ESTABLISHED and goes then to FIN_WAIT_1. So the memory for MEMP_TCP_PCB_LISTEN will never be freed.

So, what I’m doing wrong?

 

Thanks in advance,

Christian


reply via email to

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