[AGENT++] RE: Lock
Chaim Turkel - Israel
ChaimT at gilat.com
Sun Nov 13 12:39:26 CET 2005
It is very easy to replicate the problem.
With the same snmpmanager object. You have one thread for accepting
traps, and another tread for sending snmp requests. You then loop for
multiple calls, while sending traps to your machine and everything
locks.
The way I got around it is to create one snmpmanager for the traps and
another one for the get/set.
Chaim Turkel
-----Original Message-----
From: agentpp-bounces at agentpp.org [mailto:agentpp-bounces at agentpp.org]
On Behalf Of agentpp-request at agentpp.org
Sent: Tuesday, November 08, 2005 2:04 PM
To: agentpp at agentpp.org
Subject: AGENTPP Digest, Vol 22, Issue 5
Send AGENTPP mailing list submissions to
agentpp at agentpp.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.agentpp.org/mailman/listinfo/agentpp
or, via email, send a message with subject or body 'help' to
agentpp-request at agentpp.org
You can reach the person managing the list at
agentpp-owner at agentpp.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of AGENTPP digest..."
Today's Topics:
1. Re: Merging the latest code with my old one... (Jochen Katz)
2. Re: Lock (Jochen Katz)
----------------------------------------------------------------------
Message: 1
Date: Mon, 07 Nov 2005 21:38:25 +0100
From: Jochen Katz <katz at agentpp.com>
Subject: Re: [AGENT++] Merging the latest code with my old one...
To: agentpp at agentpp.org
Message-ID: <436FBB41.4070703 at 2004.joka.homelinux.org>
Content-Type: text/plain; charset=us-ascii
Hi Fedja,
> I am in the middle of merging the latest version of the Agent++ and
> SNMP++ libraries over my older ones and I have a question regarding
> the some changes in SNMP++. For some reason all of the header files
> from the snmp++\include folder are moved into the
> snmp++\include\snmp_pp folder instead. Could anyone give the reason
> why an extra folder requirement in here?
there is only one reason: to make includes unique. If you include
address.h you might include some system header. If you write
snmp_pp/address.h only the snmp++ header is found.
Regards,
Jochen
------------------------------
Message: 2
Date: Mon, 07 Nov 2005 21:38:27 +0100
From: Jochen Katz <katz at agentpp.com>
Subject: Re: [AGENT++] Lock
To: agent++ <agentpp at agentpp.org>
Message-ID: <436FBB43.60801 at 2004.joka.homelinux.org>
Content-Type: text/plain; charset=us-ascii
Hi,
> I have an application that has a thread to listen to traps, and other
> threads to send. After I get multiple traps in succession, it seems
that
> the whole snmp engine enters into a dead lock.
without more details (stack trace of the blocked threads) I can only
give you the following hint: don't send sync requests from within the
callback function.
Regards,
Jochen
------------------------------
_______________________________________________
AGENTPP mailing list
AGENTPP at agentpp.org
http://lists.agentpp.org/mailman/listinfo/agentpp
End of AGENTPP Digest, Vol 22, Issue 5
**************************************
More information about the AGENTPP
mailing list