lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Accepting TCP connections when out of PCBs


From: Artem Pisarenko
Subject: Re: [lwip-users] Accepting TCP connections when out of PCBs
Date: Wed, 28 Nov 2012 09:17:31 +0700
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2

I have a question regarding accepting client PCBs on a listening PCB:

Is it by design that the stack aborts an already connected PCB, if it fails to allocate a free TCP PCB from the memory pools to handle pending connection requests?

Yes, that's by design. Note that pcbs have a priority (pcb->prio) and only connections that have a lower priority (value) than the newly allocated pcb will be closed.

Surprising news. It wasn't mentioned anywhere. How to assign priorities with sequential API ?

--
Artem



reply via email to

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