hozn / coilmq

Lightweight Python STOMP message broker.
Apache License 2.0
49 stars 18 forks source link

Fix heartbeats #36

Open rad-pat opened 1 year ago

rad-pat commented 1 year ago

I had the need for a python STOMP implementation and this looked to be a great start. Heartbeats were not working correctly so I have implemented a fix, please take a look and see what you think.

Issues were: heartbeat timers continued after engine was disconnected any message received via the socket should be considered the last communication allow some flex in the last heartbeat received before closing the connection (perhaps I have flexed this too much at 2*interval)