Hi all,

Thank you
Gordon Sim [email protected]
what you suggest seems to work flawlessly.
Thanks you also
Rob Godfrey [email protected] and Bee k [email protected]
I really appreciate the time and the effort.

The only problem is that in this case the reply queue is deleted before the
receiver sends the reply and thus cause receiver to
amqp:not-found: Node not found:
0194072d-a3e6-495d-9a51-85110a9b605d_017ab73c-9fae-4635-878c-60779e7dd155
but this is something that it can be handled.

For me, send, response and timeout should be a standard functionality.
Otherwise the sender will wait for ever.


Thank you all :)
Panos.




On Wed, Jan 30, 2019 at 8:31 PM Gordon Sim <[email protected]> wrote:

> On 30/01/19 14:03, Panagiotis Sakellariou wrote:
> > Hi there,
> >
> > I'm new on qpid proton and I can to work with qpid-proton cpp libs.
> > I'm running through the provided examples but I'm having the following
> > issue.
> >
> > Simple sent  and receive works.
> > Send receive and reply works as well.
> > Now I want to have send, receive, reply but on the sender to have a
> timeout
> > and if the reply is not receive within a period of time then stop
> waiting.
> > I have opened a ticket https://issues.apache.org/jira/browse/PROTON-2000
> > because I though this is how it should be implemented.
>
> The timeout on the source determines how long any state associated with
> the subscription is kept when the subscription is not active. It comes
> from the AMQP spec[1] but the description there is not very helpful
> either (requires a fair bit of reading between the lines).
>
> [1]
>
> http://docs.oasis-open.org/amqp/core/v1.0/amqp-core-complete-v1.0.pdf#subsection.3.5.3
>
> > I have the code there so anyone can check it,
> >
> > Can anyone send me an example or a link where i can find more information
> > about what I'm trying to do.
> > Also i think the documentation is not sufficient. So any information
> links
> > with example, discussion would be very helpful. :)
>
> Attached is an example that I think shows what you want (i.e. time out
> if a reply does not arrive within some configured time). There isn't a
> lot of doc on it I'm afraid. Ideally the tutorial would have a section
> on scheduled events. The schedule method on container is the primary
> tool though:
>
> https://qpid.apache.org/releases/qpid-proton-0.25.0/proton/cpp/api/classproton_1_1container.html#aa99ede2051ccdf5fe8257d893559ea26
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]

Reply via email to