majek / puka

Puka - the opinionated RabbitMQ client
https://github.com/majek/puka
Other
182 stars 34 forks source link

heartbeat support #26

Closed reedwade closed 11 years ago

reedwade commented 11 years ago

I've implemented heartbeat support. This was something we needed as we're working across a load balancer w/a 5 minute idle connection time out.

Instead of keeping track of the fact the client should send heartbeats, it's uses the server heartbeat receipt as a trigger to send one. It's simple and seems to work.

majek commented 11 years ago

Seems to be working, the change is small, and disabled by default. Ideal :) Thanks for submitting!