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

Reply via email to