Attention is currently required from: lynxis lazus. laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-remsim/+/28027 )
Change subject: server: Detect duplicate client/bankd connection; drop new ones ......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
I'm not talking about rogue actors, but about an accidential misconfiguration. […]
Another reason to drop the new one is to avoid neverending ping-pong between two clients. If they both re-connect and you always use the new one, you will have a different client connected to the reader/slot every few seconds. If the old one prevails, then at least one client owns the card until it releases it (or times out), at which point they both have a chance of grabbing it, and whoever wins will then remain owning that slot/card.