Open emk opened 7 years ago
Hi @emk , I'm glad to hear that you find this library useful.
Heartbeat is indeed one of the missing features. It should not be that hard to implement.
Tune
request and send interval along with a connection::TuneOk
frame.> 0
, then we need to start sending heartbeats on channel 0. I guess we should start a new thread, which will do this in the specified intervals. It is only necessary to send heartbeats if there was no traffic sent through the connection during the heartbeat interval.connection.close
). Somehow notify consumers/producers (?).More information available AMQP Spec, page 36-37.
Definitely an awesome library so far. Heartbeat support would be a great feature to implement, no doubt. I'll see if I can get around to opening a PR for this ASAP.
Ok, opened up initial PR on getting this in order. I am giving it some practical testing now.
Thank you for writing a great AMQP library for Rust!
I'm using this library at work, and I've run into a use-case where it would really help to have AMQP heartbeat support. Do you have any suggestions about how heartbeat support could be implemented, and where to start? Thank you for any pointers you can provide!