… | |
… | |
75 | |
75 | |
76 | Unfortunately, this number depends not only on processing speed and load |
76 | Unfortunately, this number depends not only on processing speed and load |
77 | of the machine running Net::SNMP, but also on the network latency and the |
77 | of the machine running Net::SNMP, but also on the network latency and the |
78 | speed of your SNMP agents. |
78 | speed of your SNMP agents. |
79 | |
79 | |
80 | AnyEvent::SNMP tries to dynamically adjust this number dynamically upwards |
80 | AnyEvent::SNMP tries to dynamically adjust this number upwards and |
81 | and downwards. |
81 | downwards. |
82 | |
82 | |
83 | Increasing C<$MAX_OUTSTANDING> will not automatically use the |
83 | Increasing C<$MAX_OUTSTANDING> will not automatically use the |
84 | extra request slots. To increase C<$MAX_OUTSTANDING> and make |
84 | extra request slots. To increase C<$MAX_OUTSTANDING> and make |
85 | C<AnyEvent::SNMP> make use of the extra paralellity, call |
85 | C<AnyEvent::SNMP> make use of the extra paralellity, call |
86 | C<AnyEvent::SNMP::set_max_outstanding> with the new value, e.g.: |
86 | C<AnyEvent::SNMP::set_max_outstanding> with the new value, e.g.: |
… | |
… | |
135 | |
135 | |
136 | =cut |
136 | =cut |
137 | |
137 | |
138 | package AnyEvent::SNMP; |
138 | package AnyEvent::SNMP; |
139 | |
139 | |
140 | no warnings; |
140 | use common::sense; |
141 | use strict qw(subs vars); |
|
|
142 | |
141 | |
143 | # it is possible to do this without loading |
142 | # it is possible to do this without loading |
144 | # Net::SNMP::Dispatcher, but much more awkward. |
143 | # Net::SNMP::Dispatcher, but much more awkward. |
145 | use Net::SNMP::Dispatcher; |
144 | use Net::SNMP::Dispatcher; |
146 | |
145 | |