On Tue, 5 Apr 2011 14:02:46 -0400 Doug wrote: DM> My main concern is that net-snmp not break when two threads are doing DM> their own v3 things at the same time. DM> DM> Ideally, I want two threads to talk to the same agent via different DM> session pointers. Essentially, each thread would do its own DM> "snmp_sess_open" call, and it just so happens that they would each DM> attempt to talk to the same IP address. DM> DM> In *that* context, do you have any comments on the thread safety (in DM> senses #2 and #3) of net-snmp? Remember, at this point, our tool is DM> using a mutex for *all* v3 calls, drastically reducing performance as DM> v3 is used more.
As Wes already said, the issue (or one of them) is non-protected globals in the snmpv3 code. So any use of v3, regardless of of how many sessions or hosts are involved, is suspect. ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders