After a server disconnects, make the IServer retain the dead RemoteReference, and continue to return it to anyone who calls get_rref(). This removes the need for callers to guard against receiving a None (as long as the server was connected at least once, which is always the case for servers returned by get_servers_for_psi(), which is how all upload/download code gets servers). Includes test. fixes #1636

This commit is contained in:
david-sarah
2012-06-15 01:48:55 +00:00
parent 2c4ea1df5f
commit 1b07d30761
4 changed files with 49 additions and 3 deletions

View File

@ -213,6 +213,7 @@ class Client(node.Node, pollmixin.PollMixin):
sk,vk_vs = keyutil.parse_privkey(sk_vs.strip())
self.write_config("node.pubkey", vk_vs+"\n")
self._server_key = sk
self.node_key_s = vk_vs
def _init_permutation_seed(self, ss):
seed = self.get_config_from_file("permutation-seed")