project-iris / iris

Decentralized cloud messaging
iris.karalabe.com
Other
570 stars 32 forks source link

Relay kill switch #51

Open karalabe opened 10 years ago

karalabe commented 10 years ago

Currently almost everything can be tested easily in binding implementations, except proper clean-up in case of an Iris node failure. This would need each such test to kill off the Iris node after setting up the test, which would be very impractical.

A better solution would be to introduce a small kill switch into the relay protocol, through which each connection could trigger an immediate drop from the Iris node. This way we could simulate an Iris crash without needing to go through the hassle of actually producing one.