Re: [lwip-users] f'up: Leaking tcp_ucbs in raw api

2017-09-04 Thread goldsi...@gmx.de
Steinberg Michael wrote: Hello, Here's a bit more context to my problem. When I call tcp_close in reaction to being handed a NULL pbuf ptr in the receive-callback, this is what happens inside file "tcp.c": Eventually tcp_close_shutdown is called with the tcp_pcb in state CLOSE_WAIT. The "Not

Re: [lwip-users] f'up: Leaking tcp_ucbs in raw api

2017-09-01 Thread Sergio R. Caprile
It is stated in the RFCs that after a connection is closed, it should not be reused for some time. This is to account for data arriving later. This has been already discussed in this list. If you need to accept further connections during that time, you need to have more pcbs available. When

[lwip-users] f'up: Leaking tcp_ucbs in raw api

2017-08-29 Thread Steinberg Michael
Hello, Here's a bit more context to my problem. When I call tcp_close in reaction to being handed a NULL pbuf ptr in the receive-callback, this is what happens inside file "tcp.c": Eventually tcp_close_shutdown is called with the tcp_pcb in state CLOSE_WAIT. The "Not all data received by