max-same-clients = 1 refuses the re-connection of an already connected user
We use ocserv-0.12.4 with static IP allocation per user (same IP on every connect for firewall/audit purposes) and as we want to block two concurrent client connections (because the second one won't work) we've set "max-same-clients = 1".
Only cone connection is possible but this setting won't allow client reconnection based on cookies, roaming. If a client connection is interrupted it will always ask the password. To resolve this issue we are forced to make "max-same-clients = 2". Now client reconnection based on cookies and roaming works but this also permits two concurrent client connections and the last one won't work (because there will be two connection with the same IP and only the first one will work).
The issue is when a user connects from a home computer and forgets the VPN connection active. When he goes to work and tries to connect from the work computer, the VPN connection is established but nothing works. We manually have to disconnect the old session for the new one to work.
I think an option in ocserv to disconnect the active sessions when a new one is established will fix this issue.