1. 27 Feb, 2015 1 commit
  2. 25 Feb, 2015 2 commits
    • Juan Batiz-Benet's avatar
      Merge pull request #819 from jbenet/x_net_context_leeroy · bb48f116
      Juan Batiz-Benet authored
      update context imports to golang.org/x/net
      bb48f116
    • Henry's avatar
      rewrote import paths of go.net/context to use golang.org/x/context · 9bc5b3d5
      Henry authored
      - updated go-ctxgroup and goprocess
      ctxgroup: AddChildGroup was changed to AddChild. Used in two files:
      - p2p/net/mock/mock_net.go
      - routing/dht/dht.go
      
      - updated context from hg repo to git
      prev. commit in hg was ad01a6fcc8a19d3a4478c836895ffe883bd2ceab. (context: make parentCancelCtx iterative)
      represents commit 84f8955a887232b6308d79c68b8db44f64df455c in git repo
      
      - updated context to master (b6fdb7d8a4ccefede406f8fe0f017fb58265054c)
      
      Aaron Jacobs (2):
      net/context: Don't accept a context in the DoSomethingSlow example.
      context: Be clear that users must cancel the result of WithCancel.
      
      Andrew Gerrand (1):
      go.net: use golang.org/x/... import paths
      
      Bryan C. Mills (1):
      net/context: Don't leak goroutines in Done example.
      
      Damien Neil (1):
      context: fix removal of cancelled timer contexts from parent
      
      David Symonds (2):
      context: Fix WithValue example code.
      net: add import comments.
      
      Sameer Ajmani (1):
      context: fix TestAllocs to account for ints in interfaces
      9bc5b3d5
  3. 24 Feb, 2015 3 commits
  4. 15 Feb, 2015 2 commits
  5. 13 Feb, 2015 2 commits
  6. 03 Feb, 2015 4 commits
  7. 02 Feb, 2015 2 commits
  8. 01 Feb, 2015 1 commit
  9. 31 Jan, 2015 2 commits
    • Juan Batiz-Benet's avatar
      dht: removing addrs sanity check · 5ee251d2
      Juan Batiz-Benet authored
      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.
      5ee251d2
    • Juan Batiz-Benet's avatar
      p2p/net: notify on listens · 4f274c84
      Juan Batiz-Benet authored
      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.
      4f274c84
  10. 30 Jan, 2015 1 commit
    • Brian Tiger Chow's avatar
      log(dht): remove lots of query debug logs · 4e858580
      Brian Tiger Chow authored
      the debug log is flooded with pages upon pages of...
      
      we've gotta be more judicious with our use of console logs. i'm sure
      there's interesting actionable information in here. let's use the
      console logging more like a sniper rifle and less like birdshot.
      
      feel free to revert if there are specific critical statements in this
      changeset
      
      03:05:24.096 DEBUG        dht: dht(<peer.ID
      QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
      queryPeer(<peer.ID QmSoLp>) QUERY worker for: <peer.ID QmSoLp> - not
      found, and no closer peers. prefixlog.go:107
      03:05:24.096 DEBUG        dht: dht(<peer.ID
      QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
      queryPeer(<peer.ID QmSoLp>) completed prefixlog.go:107
      03:05:24.096 DEBUG        dht: dht(<peer.ID
      QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
      queryPeer(<peer.ID QmSoLp>) finished prefixlog.go:107
      03:05:24.096 DEBUG        dht: dht(<peer.ID QmWGN3>)
      FindProviders(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK)
      Query(<peer.ID QmSoLn>) 0 provider entries prefixlog.go:107
      03:05:24.096 DEBUG        dht: dht(<peer.ID QmWGN3>)
      FindProviders(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK)
      Query(<peer.ID QmSoLn>) 0 provider entries decoded prefixlog.go:107
      03:05:24.096 DEBUG        dht: dht(<peer.ID QmWGN3>)
      FindProviders(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK)
      Query(<peer.ID QmSoLn>) got closer peers: 0 [] prefixlog.go:107
      03:05:24.097 DEBUG        dht: dht(<peer.ID QmWGN3>)
      FindProviders(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK)
      Query(<peer.ID QmSoLn>) end prefixlog.go:107
      03:05:24.097 DEBUG        dht: dht(<peer.ID
      QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
      queryPeer(<peer.ID QmSoLn>) query finished prefixlog.go:107
      03:05:24.097 DEBUG        dht: dht(<peer.ID
      QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
      queryPeer(<peer.ID QmSoLn>) QUERY worker for: <peer.ID QmSoLn> - not
      found, and no closer peers. prefixlog.go:107
      03:05:24.097 DEBUG        dht: dht(<peer.ID
      QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
      queryPeer(<peer.ID QmSoLn>) completed prefixlog.go:107
      03:05:24.097 DEBUG        dht: dht(<peer.ID
      QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
      queryPeer(<peer.ID QmSoLn>) finished prefixlog.go:107
      03:05:24.097 DEBUG        dht: dht(<peer.ID
      QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
      all peers ended prefixlog.go:107
      03:05:24.097 DEBUG        dht: dht(<peer.ID
      QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
      spawnWorkers end prefixlog.go:107
      03:05:24.097 DEBUG        dht: dht(<peer.ID
      QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
      failure: %s routing: not found prefixlog.go:107
      03:05:24.097 DEBUG        dht: dht(<peer.ID
      QmWGN3>).Query(QmXvrpUZXCYaCkf1jfaQTJASS91xd47Yih2rnVC5YbFAAK).Run(3)
      end prefixlog.go:107
      4e858580
  11. 27 Jan, 2015 1 commit
  12. 25 Jan, 2015 1 commit
  13. 24 Jan, 2015 10 commits
  14. 23 Jan, 2015 8 commits