[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #55744] memp_malloc: out of memory in pool TCP_PCB_LIS
[lwip-devel] [bug #55744] memp_malloc: out of memory in pool TCP_PCB_LISTEN
Wed, 20 Feb 2019 04:40:05 -0500 (EST)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
Summary: memp_malloc: out of memory in pool TCP_PCB_LISTEN
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: love2006806
Submitted on: Wed 20 Feb 2019 09:40:02 AM UTC
Severity: 3 - Normal
Item Group: Crash Error
Assigned to: None
Discussion Lock: Any
Planned Release: None
lwIP version: 1.4.1
I'm not sure is this a bug.
I use raw api in non-os environment.
My application is TCP server.
The flow is below:
1.Create two raw socket server.(port A, port B)
First for data exchange, and a second socket for reopen the two socket.(Two
socket port are different)
2.When port A connecting, other client connect port B.
Port B receive callback function will call close_conn() to close itself. And I
will call close_conn to close port A.
After port A pcb->state was CLOSED, use tcp_close() to let port A and port B
pcb->state to CLOSED from listen state and CLOSED again to remove
3.Recreate two raw socket server.
Question is in step.3.
After create port A, when port B in listen function, it show the below message
and lwip is not work.
memp_malloc: out of memory in pool TCP_PCB_LISTEN
Please correct me if anything wrong.
Please help me, I really need to solve.
Reply to this item at:
Message sent via Savannah
- [lwip-devel] [bug #55744] memp_malloc: out of memory in pool TCP_PCB_LISTEN,
Allen Tseng <=