Hi

we are storing in a global variable array that is indexed by the
transaction Id.So, the array is not getting overwritten. Also were
setting requests->delegated = 0;
before calling snmp_set_var_typed_value function.

Any pointers would greatly help

On 10/15/07, Wes Hardaker <[EMAIL PROTECTED]> wrote:
> >>>>> "skk" == shwth k kk <shwth_k> writes:
>
> skk> Reason: (genError) A general failure occured
>
> Are you remembering to set the delegated flag back to 0?
>
> IE:
>
>       requests->delegated = 0;
>
> after you handle the request?
>
> Note that storing the delegated cache in a global variable isn't safe.
> IE, if two requests come in at the same time for variables in your
> information, the second request will overwrite the variable stored by
> the first before the first has finished handling it.
> --
> Wes Hardaker
> Sparta, Inc.
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to