Hi Ken,

thanks for your answer.
And is there a way how to set it for pn_messenger_t

Thanks,
Tomas


2013/11/8 Ken Giusti <[email protected]>

> Hi Tomas,
>
> The C implementation of proton allows you to set an idle time out for a
> connection as described in the AMQP 1.0 spec.  This value is used to
> generate "null" frames (ie. frames with no bodies) on idle connections as
> to not expire the timeout.   The connection will be dropped if the local
> side does not receive any traffic for it's configured timeout period.
>
> The C api is available on the transport object - see engine.h:
>
> /* timeout of zero means "no timeout" */
> PN_EXTERN pn_millis_t pn_transport_get_idle_timeout(pn_transport_t
> *transport);
> PN_EXTERN void pn_transport_set_idle_timeout(pn_transport_t *transport,
> pn_millis_t timeout);
> PN_EXTERN pn_millis_t pn_transport_get_remote_idle_timeout(pn_transport_t
> *transport);
>
>
> I don't think the java implementation has this - yet.  See
> https://issues.apache.org/jira/browse/PROTON-111
>
>
>
> ----- Original Message -----
> > From: "Tomáš Šoltys" <[email protected]>
> > To: [email protected]
> > Sent: Friday, November 8, 2013 6:06:15 AM
> > Subject: Heartbeat
> >
> > Hi,
> >
> > I am looking for a way how to manually specify heartbeat for a
> connection.
> >
> > Is there a way how to do it using proton?
> >
> > Thanks,
> >
> > Tomas Soltys
> >
>
> --
> -K
>



-- 
Tomáš Šoltys
[email protected]
http://www.range-software.com
(+420) 776-843-663

Reply via email to