qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: messaging API Connection open but Session in error
Date Mon, 09 Jun 2014 08:44:32 GMT
On 06/08/2014 02:54 PM, CLIVE wrote:
> But one of my users has just discovered an edge case where the
> connection can be active but the Session has had an error (i.e.
> delivering a message to an already full queue). Under this condition
> calling reconnect fails, quite rightly, because the connection is
> already open. So I have an active connection but a Session in error. I
> could call close on the connection, but this has the undesired effect of
> closing all the active sessions, something I don't want to do. I would
> like to just reset the error-ed Session, much like the reconnect method
> achieves (it calls ConnectionImpl::resetSessions), but this
> functionality is not directly available on the
> qpid::messaging::Connection or qpid::messaging::Session classes.

The reason you want to reset the session, rather than just creating a 
new one, is that it is referenced elsewhere?

> Would this kind of Session reset functionality be made available in
> future versions of qpid?
>
> I was looking at patching my current qpid-0.28 source code to provide
> this functionality, can any one think of a reason why exposing this
> functionality might be a bad idea?

No, I can't think of any reason not to allow something like that. If you 
want to submit a patch, I'll be happy to help you get it committed.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Mime
View raw message