1. 18 May, 2015 1 commit
  2. 28 Apr, 2015 1 commit
  3. 31 Mar, 2015 1 commit
  4. 07 Mar, 2015 1 commit
  5. 25 Feb, 2015 1 commit
    • Henry's avatar
      rewrote import paths of go.net/context to use golang.org/x/context · 92d08db7
      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
      92d08db7
  6. 03 Feb, 2015 1 commit
  7. 23 Jan, 2015 3 commits
    • Jeromy's avatar
      65b657e0
    • Juan Batiz-Benet's avatar
      net/diag: recursively decrement timeouts. · f6278735
      Juan Batiz-Benet authored
      Not sure this works. we dont have tests for net diag.
      We should make some.
      cc @whyrusleeping.
      f6278735
    • Juan Batiz-Benet's avatar
      diag/net: io must respect timeout ctx · c64338a8
      Juan Batiz-Benet authored
      See the discussion below. A future commit will implement the closer
      change below, and rebase this one on top.
      
      <•jbenet> `n.Diagnostics.GetDiagnostic(time.Second * 20)` is not being respected. should it use a context instead? or is it a timeout because the timeout is sent to other nodes?
      <•jbenet> oh it's that the io doesnt respect the context so we're stuck waiting for responses.
      <•jbenet> this is that complex interface point between the world of contexts, and the world of io. ctxutil.Reader/Writer is made for this, but you have to make sure to defer close the stream. (see how dht_net uses it). i'd love to find a safer interface. not sure what it is, but we have to a) respect contexts, and b) allow using standard io.Reader/Writers. Maybe TRTTD
      <•jbenet> is have ctxutil.Reader/Writer take ReadCloser and WriteClosers and always close them. the user _must_ pass an ioutil. NopCloser to avoid ctxutil closing on you when you dont want it to.
      <•jbenet> this seems safer to me in the general case.
      c64338a8
  8. 16 Jan, 2015 2 commits
  9. 15 Jan, 2015 2 commits
  10. 14 Jan, 2015 5 commits
  11. 12 Jan, 2015 4 commits
  12. 02 Jan, 2015 3 commits
    • Juan Batiz-Benet's avatar
      swap net2 -> net · 8fb5cf95
      Juan Batiz-Benet authored
      8fb5cf95
    • Juan Batiz-Benet's avatar
      net -> p2p/net · e2698a87
      Juan Batiz-Benet authored
      The net package is the next to move. It will be massaged
      a bit still to fix the Network / "NetworkBackend" conflict.
      e2698a87
    • Juan Batiz-Benet's avatar
      introducing p2p pkg · 89f5cd4c
      Juan Batiz-Benet authored
      I think it's time to move a lot of the peer-to-peer networking
      but-not-ipfs-specific things into its own package: p2p.
      This could in the future be split off into its own library.
      The first thing to go is the peer.
      89f5cd4c
  13. 30 Dec, 2014 1 commit
  14. 23 Dec, 2014 1 commit
    • Juan Batiz-Benet's avatar
      peer change: peer.Peer -> peer.ID · c84a714b
      Juan Batiz-Benet authored
      this is a major refactor of the entire codebase
      it changes the monolithic peer.Peer into using
      a peer.ID and a peer.Peerstore.
      
      Other changes:
      - removed handshake3.
      -	testutil vastly simplified peer
      -	secio bugfix + debugging logs
      -	testutil: RandKeyPair
      -	backpressure bugfix: w.o.w.
      -	peer: added hex enc/dec
      -	peer: added a PeerInfo struct
        PeerInfo is a small struct used to pass around a peer with
       	a set of addresses and keys. This is not meant to be a
       	complete view of the system, but rather to model updates to
       	the peerstore. It is used by things like the routing system.
      -	updated peer/queue + peerset
      -	latency metrics
      -	testutil: use crand for PeerID gen
       	RandPeerID generates random "valid" peer IDs. it does not
       	NEED to generate keys because it is as if we lost the key
       	right away. fine to read some randomness and hash it. to
       	generate proper keys and an ID, use:
       	  sk, pk, _ := testutil.RandKeyPair()
       	  id, _ := peer.IDFromPublicKey(pk)
       	Also added RandPeerIDFatal helper
      - removed old spipe
      - updated seccat
      - core: cleanup initIdentity
      - removed old getFromPeerList
      c84a714b
  15. 18 Dec, 2014 1 commit
  16. 16 Dec, 2014 1 commit
  17. 14 Nov, 2014 1 commit
  18. 09 Nov, 2014 1 commit
  19. 03 Nov, 2014 1 commit
  20. 25 Oct, 2014 1 commit
    • Juan Batiz-Benet's avatar
      go-vet friendly codebase · 184c2543
      Juan Batiz-Benet authored
      - distinguish log.Error and log.Errorf functions
      - Initialize structs with field names
      - A bit of unreachable code (defers)
      184c2543
  21. 22 Oct, 2014 2 commits
  22. 20 Oct, 2014 1 commit
  23. 18 Oct, 2014 4 commits