Re: My process is blocked while sendin a trap

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

Concerning my problem, I'm not sure that the deadlock arises between a 
read(get...) and the send trap using the same socket.

Indeed, I reproduce the same behaviour of deadlock with a sample which is 
"only" sending traps massively (no get/getbulk/walk... are executed)

my code :

int main()
{
init i = 0;

while ( i < 5000 )
{
sendTrap("Test");
}

return 0;
}

where sendTrap pushed the message in a queue; the message is then processed 
by my monitoring thread which calls send_v2trap.


>From: "Dave Shield" <[email protected]>
>To: "Arnaud BODENAN" <[email protected]>
>CC: [email protected]
>Subject: Re: My process is blocked while sendin a trap
>Date: Thu, 12 Oct 2006 13:57:48 +0100
>
>On 12/10/06, Arnaud BODENAN <[email protected]> wrote:
>>Sure, I understand that.
>>I just try to figure out how difficult it would be to implement it myself.
>
>OK - I give in.
>Please see the attached patch.
>
>Warning - this is *COMPLETELY* untested.
>I haven't even checked to see that it compiles - let alone works - let
>alone actually fixes the problem.
>
>But this is the sort of approach I had in mind.
>Apply it to agent/mibgroup/agentx/subagent.c
>
>Dave


><< subagent.diff >>


>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job 
>easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


>_______________________________________________
>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

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


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.