Hi,
What you see is probably is due to how pcscd handles multi threading. I might be wrong, but I think that pcscd acquires a lock for each call to a specific driver and only realeases it once the call is finished. Calls to a specific driver are therefore serialised. This has the great advantage of making the development of drivers much simpler (you don't have to worry about mutlithreading in the driver). The dawback is that the driver can only execute one command at a time.
Cheers, JLuc.
On Wednesday, September 3, 2003, at 01:17 PM, Damien Sauveron wrote:
Hello,
Following my previous post, I have done a test that shows a strange behaviour
of PC/SC Lite.
In the case of an ifdhandler supporting simultaneous readers it seems that if a
call on a reader take a long time, the other calls doing during this time on
the other readers (handling by the same driver) are sleeped until the response
from the first reader arrived.
For doing this tests, you can use for example the Generic CCID driver [1] and 2
CCID readers supported.
Add theses lines in the src/ifdhandler.c at the line 558:
"
printf("ICC Present %02X\n", Lun);
if (Lun == 0) {
printf("I have the Lun=0 and I sleep 5 seconds\n");
sleep(5);
}
"
Recompile it and reinstall it.
Plug your readers and start pcscd:
pcscd -f -d stderr
You will see that when the first reader is testing for the presence of the card
the process that should ask the presence of a card for the second reader is
stop also. :-(
I have also done this test with a driver that I have developped and the problem
is the same.
But if you used for example the Generic CCID driver with theses modifications
and in the same time an other reader using an other driver, ONLY the process
for the CCID reader is stop. The process for the second reader always runs
normaly.
Some ideas on this problem? I think that is the same problem for the multi-slot
handling.
[1] http://alioth.debian.org/projects/pcsclite/
Regards,
Damien Sauveron
------------------------------------------------- This mail sent through IMP: http://horde.org/imp/
_______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.musclecard.com/mailman/listinfo/muscle
_______________________________________________ Muscle mailing list [EMAIL PROTECTED] http://lists.musclecard.com/mailman/listinfo/muscle
