Re: snmpd threadedness

2009-05-18 Thread Wes Hardaker
 On Thu, 07 May 2009 09:15:11 +0200, Robert Voigt 
 robert.vo...@thalesatm.com said:

RV I've heard that snmpd, when operating as a proxy, forwards one SET
RV request at a time and buffers all other requests until the SET response
RV arrives. 

Correct.

RV This 'feature' would be valuable for me if it worked with all types of
RV requests. I need to send SNMP over a half duplex connection that
RV currently has no other means to negotiate who can send.

The main agent only tries to handle multiple requests at a time when
it's safe to do so (IE, when it's not a SET and there are no outstanding
SETs).

I'm pretty sure you can turn off the feature too, but it's likely a
compile-time #define statement somewhere (I forget where; search agent/*.c).

RV If I proxied the requests of all managers through snmpd and it sent one
RV request at a time, buffering other requests until the response arrives,
RV this would nicely avoid collisions.

What's controlling the simplex connection?  How come the code itself
isn't blocking on that?  There is no threading going on in the Net-SNMP
agent.  There is a very special mechanism by which a submodule has to
tell the parent that it's ok to continue.  If the submodule code is
already blocking, you won't run into your issue in the first place.


-- 
Wes Hardaker
Cobham Analytic Solutions

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


snmpd threadedness

2009-05-07 Thread Robert Voigt
Hi,

I've heard that snmpd, when operating as a proxy, forwards one SET
request at a time and buffers all other requests until the SET response
arrives. 

This 'feature' would be valuable for me if it worked with all types of
requests. I need to send SNMP over a half duplex connection that
currently has no other means to negotiate who can send. 

If I proxied the requests of all managers through snmpd and it sent one
request at a time, buffering other requests until the response arrives,
this would nicely avoid collisions.

I haven't found a configuration option to get this behavior, and I
haven't looked at the source code yet. If there is an easy way to do it,
like setting the number of threads for requests to one, I'd be glad to
hear about it.

Robert

--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users