You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Gordon Sim <gs...@redhat.com> on 2009/07/13 14:55:42 UTC
Re: svn commit: r793121 - in /qpid/trunk/qpid/cpp/src/qpid: broker/
cluster/ management/
astitcher@apache.org wrote:
> Author: astitcher
> Date: Fri Jul 10 21:42:11 2009
> New Revision: 793121
>
> URL: http://svn.apache.org/viewvc?rev=793121&view=rev
> Log:
> Change all broker users of broker::Timer to use sys::Timer
This breaks proper functioning of heartbeats (to observe, start several
idle clients with different heartbeats and watch them get disconnected).
I believe the root of the problem may be the holding of the timer task
lock while invoking wait on the 'next' task.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org
Re: svn commit: r793121 - in /qpid/trunk/qpid/cpp/src/qpid:
broker/ cluster/ management/
Posted by Andrew Stitcher <as...@redhat.com>.
On Mon, 2009-07-13 at 13:55 +0100, Gordon Sim wrote:
> astitcher@apache.org wrote:
> > Author: astitcher
> > Date: Fri Jul 10 21:42:11 2009
> > New Revision: 793121
> >
> > URL: http://svn.apache.org/viewvc?rev=793121&view=rev
> > Log:
> > Change all broker users of broker::Timer to use sys::Timer
>
> This breaks proper functioning of heartbeats (to observe, start several
> idle clients with different heartbeats and watch them get disconnected).
Oops, that's bad form!
>
> I believe the root of the problem may be the holding of the timer task
> lock while invoking wait on the 'next' task.
I don't think this could be the root cause, because the code doesn't do
this, it always releases the lock before waiting.
[A previous version of the code did indeed do this, you may be thinking
of that]
I'll investigate this.
Andrew
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org