On Tue, 10 Jul 2007 17:33:57 +0800 zhangyao wrote: Z> netsnmp_handle_request(netsnmp_agent_session *asp, int status) Z> /* Z> * if this isn't a delegated request trying to finish, Z> * processing of a set request should not start until all Z> * delegated requests have completed, and no other new requests Z> * should be processed until the set request completes. Z> */ Z> Z> i don't know delegated request means what.it seems that incoming request have the priority. Z> Can you tell me in what conditions an incoming request will enqueue or be processed?
When a module needs time to complete an incoming request, it can mark the request as delegated and return, allowing the agent to processing other requests. For example, the agent marks any request that must be processed by an AgentX sub-agent as delegated, and will happily process other requests while waiting for the sub-agent to respond. For set processing, net-snmp uses the 'one big lock' model, and requires that all pending requests complete before processing the set request. Once a set request is received, it will be processed immediately, unless there are pending delegated requests. In that case, the set (and all other incoming packets) are queued until the delegated requests finish. Then the set is processed, and once that completes, the other queued packets are processed. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
