qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martín Tabak <martin...@gmail.com>
Subject Re: Help request
Date Thu, 16 Apr 2020 20:11:42 GMT
Hey Gordon,

I went for the background thread, and is running smoothly now.

Thanks so much for the quick reply!

Martin

El mié., 15 de abril de 2020 15:59, Gordon Sim <gsim@redhat.com> escribió:

> On 15/04/2020 5:38 pm, Martín Tabak wrote:
> > Hi community!
> >
> > I'm facing a disconnection issue using the Qpid python client v0.30.0 for
> > jobs taking > 40 seconds.
> >
> > The issue is described on this thread:
> > https://stackoverflow.com/q/60857609/597394
> >
> > And there's a MRE here: https://github.com/martintuk/qpid-python-mre.
> >
> > This is of extreme importance to the project I'm working now, so Id be
> > really grateful if I could get some help to identify if it's due to a
> > configuration issue or an actual bug on the library.
>
> The reason it is not reconnecting is beacuse when you finally allow the
> event loop to run again (after the sleep) it processes the connection
> close. Reconnect at present for the python client is only triggered when
> the transport under an active connection is lost.
>
> Ideally there would be a way to indicate a list of connection error
> conditions that would also trigger reconnect, but I don't see anything
> there at present.
>
> However, the biggest issue I think is that you are blocking the event
> thread. A better approach would be to use separate threads for the event
> loop and message processing and coordinate via a Queue or similar.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
> For additional commands, e-mail: dev-help@qpid.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message