Opened at 2010-06-16T03:57:43Z
Last modified at 2016-08-30T06:28:43Z
#1086 closed enhancement
servers should attempt to open connections to clients — at Initial Version
Reported by: | zooko | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | eventually |
Component: | code-network | Version: | 1.7β |
Keywords: | introducer p2p | Cc: | writefaruq |
Launchpad Bug: |
Description
Currently each client attempts to open a connection to each server. If it were the case that a server were behind NAT or firewall and connections couldn't be opened to that server, but that server were able to open connections out to clients, then if it did so the clients would be able to use that connection to issue requests to the server.
To do this, servers should ask the introducer(s) to tell them about all clients and then servers should attempt to establish a foolscap connection to each client. If there is already such a connection (because, for example the client has already opened a connection to the server) then foolscap will automatically deduplicate and keep just one working connection.