1. 31 1月, 2015 5 次提交
    • core: setup peerhost + listen separate steps · 1a3752b8
      We had a problem: we were starting all the services with the network
      live, and so would miss early messages. We were noticing bitswap
      messages not handled (not in muxer). Many of the subsystems expect
      the network to _exist_ when they start up, so we split construction
      and starting to listen into two separate steps.
      Juan Batiz-Benet 提交于
    • p2p/host: nat manager · 763cc945
      this commit moves management of the nat to its own object.
      perhaps this can be general enough to work with any host
      (not just BasicHost), but for now keeping here.
      
      the nat manager:
      - discovers and sets up the nat asynchronously.
      - adds any port mappings necessary if/after nat has been found.
      - listens to the network Listen() changes, adding/closing mappings
      Juan Batiz-Benet 提交于
    • p2p/nat: make nat mappings closable by client · d7c9ae12
      After this commit, client can close individual mappings (without
      closing the whole NAT)
      Juan Batiz-Benet 提交于
    • dht: removing addrs sanity check · d0432f9e
      About to allow dht to start without local addresses. this is
      so that we can initialize the dht and sign it up to listen
      on the muxer, before our node starts accepting incoming connections.
      otherwise, we lose some (we're observing this happening already).
      
      I looked through the dht's use of the peerstore, and the check here
      doesnt seem to be as important as the panic implies. I believe the
      panic was used for debugging weird "dont have any address" conditions
      we had earlier.
      Juan Batiz-Benet 提交于
    • p2p/net: notify on listens · 98f2b077
      Network now signals when it successfully listens on some address
      or when an address shuts down. This will be used to establish and
      close nat port mappings. It could also be used to notify peers
      of address changes.
      Juan Batiz-Benet 提交于
  2. 30 1月, 2015 25 次提交
  3. 29 1月, 2015 10 次提交