My process is blocked while sendin a trap

"Arnaud BODENAN" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I write a sample subagentX which is sending straps, by using the function 
send_v2trap.

My subagentX is sending massively traps, and is blocked when sending the 281 
trap.

When I do a pstack on my process, I got this stack:

fbfc068c send     (8, 187d58, a8, 0)
feffa8c0 _sess_async_send (bf098, 1873f8, 0, 0, 0, 0) + d38
feffac54 snmp_sess_async_send (bf098, 1873f8, 0, 0, 2710, 0) + 74
feff9b58 snmp_async_send (70c80, 1873f8, 0, 0, 0, fe108888) + 40
feff9a98 snmp_send (70c80, 1873f8, 10ca8, fbfb9bdc, fe10861c, d) + 20
ff330dbc send_trap_to_sess (70c80, 11c128, ff37e3c4, 9, fbdfb7f0, 4) + 1fc
ff330668 netsnmp_send_traps (ffffffff, ffffffff, ff37e4b0, a, 12ba58, 0) + 
7c8
ff33073c send_enterprise_trap_vars (ffffffff, ffffffff, ff37e4b0, a, 12ba58, 
0) + 44
ff330ec8 send_trap_vars (ffffffff, ffffffff, 12ba58, fffffff8, 0, 12a96d) + 
98
ff330f3c send_v2trap (12ba58, fbdfb99c, c, 4, eae78, 10) + 14

I use net-snmp 5.3.1. Does somebody encounter the same problem? Is there a 
work aroud? Do I have to force a call to sleep (pthread_delay_np) before to 
send the trap?

Thanks in advance.

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.