Hi,
You'll need to increase the number of simultaneous TCP connection 
MEMP_NUM_TCP_PCB = 4 or more.
When the 4th arrives, it WILL begin to be accepted, so you need it.

Then you can discard it.

Best regards
Frédéric Grandjean


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On 
Behalf Of R&S_Roberto Chierichetti
Sent: vendredi 12 février 2016 14:05
To: [email protected]
Subject: [lwip-users] TCP connetion number limit

Hi,

I'm using lwIP version 1.4.0 on an AVR32 microcontroller.
In my application I need to keep opened up to three TCP connection on the same 
TCP port.
If a 4th connection arrives, while all the other three are already opened,  
this connection have to be discarded keeping active alle the three existing 
connections.

What happens now on my system is that when the 4th connection arrives, one of 
the three existing is automatically closed, and the 4th is activated.

How I can avoid this ???

I'm currently using BSD socket layer, and I've set MEMP_NUM_TCP_PCB = 3.

Thank you





_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to