From 935929fcfcd02cdebe46c83fc9de77115854d906 2012-10-14 00:32:36
From: Jan Schulz <jasc@gmx.net>
Date: 2012-10-14 00:32:36
Subject: [PATCH] Add the heartbeat period to the registration reply

The heartbeat period can then be used to set the check period on the
engine side.

---

diff --git a/IPython/parallel/controller/hub.py b/IPython/parallel/controller/hub.py
index 54eea28..accf4fd 100644
--- a/IPython/parallel/controller/hub.py
+++ b/IPython/parallel/controller/hub.py
@@ -904,7 +904,7 @@ class Hub(SessionFactory):
 
         self.log.debug("registration::register_engine(%i, %r)", eid, uuid)
 
-        content = dict(id=eid,status='ok')
+        content = dict(id=eid,status='ok',hb_period=self.heartmonitor.period)
         # check if requesting available IDs:
         if cast_bytes(uuid) in self.by_ident:
             try: