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
_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to