lwip-users
[Top][All Lists]
Advanced

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

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


From: Sergio R. Caprile
Subject: Re: [lwip-users] f'up: Leaking tcp_ucbs in raw api
Date: Fri, 1 Sep 2017 10:19:19 -0300
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

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 you "close", it may or may not close. However, since you are using 2.0+, IIRC Simon said now lwIP handles this on its own, so I'll try not to add more noise. Once you close, you must not use that pcb, it is not yours. If lwip says you don't have more pcbs, then you don't. If you need more, you have to make provisions in advance.



reply via email to

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