[Pcsclite-muscle] Increasing connected smart card reader count limit

Vincas Dargis vindrg
Mon May 2 23:32:12 PDT 2016


Hi,

We in our company have unusual use case, so that we need to have a lot
of smart cards permanently connected and ready to be used 24/7.

I've seen patch [1] that reduced PCSCLITE_MAX_READERS_CONTEXTS down to
16 (currently, we need >20 and growing).

Is this only constant that would be enough to be increased if needed?

I've seen [2] some "interesting" constants like
PCSC_MAX_CONTEXT_THREADS, PCSC_MAX_CONTEXT_CARD_HANDLES and
PCSC_MAX_READER_HANDLES  but these are set to 200 which is more than
enough if I want to increase PCSCLITE_MAX_READERS_CONTEXTS up to 127
(AFAIK max USB devices, well minus hubs but whatever), right?

There aren't any concurrent transaction limit? We would have single
daemon that will connect to pcscd and _may_ have lot's of transactions
for different cards opened when needed.

P.S. maybe someone have seen USB smart card reader "bank" with lot's of slots?

Thanks !

[1] https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=pcsclite/PCSC.git;a=blobdiff;f=src/PCSC/pcsclite.h.in;h=91ba548f90a45588e532dee7962ae2ed382bdf03;hp=9092fb313d41cf71a0df12c968b52948963ec61a;hb=9e2bb05d9f08250866afc2389afdd9b08d58b25a;hpb=261f54328d05a69707f19c788da7c2b81bedf12c

[2] https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=pcsclite/PCSC.git;a=blob;f=src/pcscd.h.in;h=3ebc0e66c43495a33c55faa47b5ed379f3a0b6b2;hb=HEAD#l56




More information about the pcsclite-muscle mailing list