Re: Unnecessary Action from chipcardd2?
Martin Preuss <[email protected]>
| Newsgroups | gmane.comp.lib.libchipcard.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On Thursday 22 February 2007 13:25, Joachim Breitner wrote: [...] > It seems that chipcardd2 is checking every 750ms for new hardware on the > USB Bus. It thought that this is not necessary any more, because > chipcardd2 will be notified somehow (udev? HAL?)? [...] No, it only checks every 2 secs for new hardware (but that is user adjustable, see example configuration file). The 750ms is the timeout when waiting for changes on the sockets (using the select() system call on listening and connected sockets of the daemon). This value could be increased in libchipcard (and I think the daemon uses much higher values than that?). [...] > Any maybe the hardware discovery should be skipped if no client is > connected to the server. [...] Hmm, that's an interesting idea... BTW: At least libchipcard3 can be used in a kind of poll-on-demand mode (only look for changes upon receiption of a signal), but that's currently not fully tested (and I don't know right now whether the signal handler is already enabled in current versions of libchipcard3). Regards Martin -- "Things are only impossible until they're not" AqBanking - http://www.aqbanking.de/ LibChipcard - http://www.libchipcard.de/ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV