Skip to content

Commit

Permalink
Fix serious bug in heartbeat logic that can result in no-timeout polls.
Browse files Browse the repository at this point in the history
  • Loading branch information
epatters committed May 8, 2011
1 parent 8f2075c commit 9832ac6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IPython/zmq/kernelmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,8 @@ def run(self):
# list, poll is working correctly even if it
# returns quickly. Note: poll timeout is in
# milliseconds.
self.poller.poll(1000*until_dead)
if until_dead > 0.0:
self.poller.poll(1000 * until_dead)

since_last_heartbeat = time.time()-request_time
if since_last_heartbeat > self.time_to_dead:
Expand Down

0 comments on commit 9832ac6

Please sign in to comment.