hookio/hook.io — Issue #156: Critical issue with reconnection - infinite loop of rank::proposing/accepting
Author: emilisto
Created: 2012-01-21 12:41:04+00:00
State: open

Open up two hooks and quit the server - the client starts listening, but at the same time triggering an infinite loop of events:

```
Name: the-hook-0 hook::rank::accepting Type: hook Data: 1
Name: the-hook-0 hook::connected Type: hook Data: 5000
Name: the-hook-0 hook::started Type: hook Data: 5000
Name: the-hook-0 hook::ready Type: hook Data: {"name":"the-hook-0","type":"hook","pkginfo":{"ver ...
Name: the-hook-0 connection::end Type: hook Data: {"name":"the-hook-0","proposedRank":1}
Name: the-hook-0 hook::rank::accepting Type: hook Data: null
Name: the-hook-0 hook::listening Type: hook Data: 5000
Name: the-hook-0 hook::started Type: hook Data: 5000
Name: the-hook-0 hook::ready Type: hook Data: {"name":"the-hook-0","type":"hook","pkginfo":{"ver ...
Name: the-hook-0 hook::rank::proposing Type: hook Data: 1
Name: the-hook-0-0 hook::rank::accepting Type: hook Data: 1
Name: the-hook-0-0 hook::connected Type: hook Data: 5000
Name: the-hook-0-0 hook::started Type: hook Data: 5000
Name: the-hook-0-0 hook::ready Type: hook Data: {"name":"the-hook-0-0","type":"hook","pkginfo":{"v ...
Name: the-hook-0-0 the-hook-0::hook::rank::proposing Type: hook Data: 1
Name: the-hook-0-0 the-hook-0-0::hook::rank::accepting Type: hook Data: 1
Name: the-hook-0-0 the-hook-0-0::hook::connected Type: hook Data: 5000
Name: the-hook-0-0 the-hook-0-0::hook::started Type: hook Data: 5000
Name: the-hook-0-0 the-hook-0-0::hook::ready Type: hook Data: {"name":"the-hook-0-0","type":"hook","pkginfo":{"v ...
Name: the-hook-0-0 the-hook-0-0::the-hook-0::hook::rank::proposing Type: hook Data: 1
Name: the-hook-0-0 the-hook-0-0::the-hook-0-0::hook::rank::accepting Type: hook Data: 1
Name: the-hook-0-0 the-hook-0-0::the-hook-0-0::hook::connected Type: hook Data: 5000
```
It seems to be remants of events from when the hook was a client ditto. The problem is introduced in 719d2175a59eb8db4792775ef12b22632db3da78