Re: Net-SNMP 5.9 crashes: agentx_check_packet snmp_read2

Wes Hardaker via Net-snmp-users <[email protected]> Fri, 21 May 2021 08:54:13 -0700
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Ɓukasz Bolda <[email protected]> writes:

> Isn't Packet_len=2564808564 too large?? 

That certainly looks like a bug is happening somewhere.

> ^which I'am calling in my main loop in seperate thread like this:
> 
> while(keep_running){
> 	agent_check_and_process(0)
> 	usleep(10*1000) //10ms
> }

So you should probably be using:


while(keep_running){
	agent_check_and_process(1);
}

Unless you're doing other things in the loop, there is no reason not to
let it block.
-- 
Wes Hardaker
USC/ISI


_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users