On Thu, 2005-09-08 at 09:15 -0700, John McCaskey wrote: > I was under the impression from reading > http://www.net-snmp.org/docs/README.thread.html that as long as I > stuck to the Single Session API for forming and sending requests I > would be ok. However, it appears that while this is true for v1 and > v2c requests it does not apply to v3.
> Is this a known issue? If I don't get feedback telling me I'm crazy > or this is known No - you're not crazy. Yes, it is known (though not very widely). > At the very least someone should update the README.thread to warn > of this issue. That README was updated earlier this year to mention the SNMPv3 problem. Unfortunately, that was only done on the main development branch, so wasn't included in the latest releases. I've just copied this text to the other branches too. But fundamentally, this README is pretty much untouched from the original version that Mike supplied way back in 1999. It wouldn't surprise me if it's somewhat out of date by now, and would probably benefit from a wholescale review and revision. > Is there work towards making v3 thread safe when using the single > session API? Ummm... I doubt it. We need somewhere ready and willing (and able) to tackle this. (Such is the down-side of Open Source development!) > My first ignorant thought it just put the userList in the session > object... but maybe its not that simple. Probably not. The userList is a collection of *all* the users known to the application (or learned during the course of operation). It probably wouldn't be sensible to have multiple copies of this list. I'm no thread expert, but I suspect that it's more a case of tracking all the places where this list is updated, and protecting those with a suitable semaphore lock, or something similar. But this isn't really my area (and I haven't looked at the code), so take that with a large dose of salt! Dave ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
