Looked at the change, and ran a gremlin horde against a multi-socket server
with multiple UDP + TCP sockets for a while, and verified (extra msg()
calls) that assigned_peer_ids properly returns to "0" after all the
clients have disdconnected (TCP) or expired (UDP).  Works.

It might be doable to get the same result by looking for a free slot
in the peer table instead ("if you can't assign a peer-id, we're over
the limit, go away") but of course there is a cost/complexity tradeoff
here...

Your patch has been applied to the master branch.

commit b0b574c229bb0f4e68b909abda4ce63bf4ce293b
Author: Arne Schwabe
Date:   Wed Oct 28 21:28:32 2026 +0100

     Track number of assigned peer ids and use it for max-clients check

     Signed-off-by: Arne Schwabe <[email protected]>
     Acked-by: Razvan Cojocaru <[email protected]>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2064
     Message-Id: <[email protected]>
     URL: 
https://www.mail-archive.com/[email protected]/msg40261.html
     Signed-off-by: Gert Doering <[email protected]>


--
kind regards,

Gert Doering



_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to