Re: [pysnmp-users] cmdgen and SNMPv3
Brought to you by:
elie
From: Vincent B. <be...@lu...> - 2015-11-15 22:02:39
|
❦ 15 novembre 2015 17:30 +0100, Vincent Bernat <be...@lu...> : > Since many stuff doesn't seem to be thread safe and that SnmpEngine is > only parsing MIB stuff to get constant data, this part should be > extracted to do it once. All the more than starting with PySNMP 4.3, MIBs are parsed/compiled with PySMI. I can't say for sure, but is it safe to compile a MIB from different threads? It seems that ply is not thread-safe. It is said: ╭─────┤ https://github.com/dabeaz/ply/blob/master/ply/yacc.py#L40-L45 ├───── │The current implementation is only somewhat object-oriented. The │LR parser itself is defined in terms of an object (which allows multiple │parsers to co-exist). However, most of the variables used during table │construction are defined in terms of global variables. Users shouldn't │notice unless they are trying to define multiple parsers at the same │time using threads (in which case they should have their head │examined). ╰───── -- You may my glories and my state dispose, But not my griefs; still am I king of those. -- William Shakespeare, "Richard II" |