1. 23 12月, 2014 8 次提交
    • net: have an explicit IdentifyConn on dial · 4fe1dd9b
      - Make sure we call IdentifyConn on dialed out conns
      - we wait until the identify is **done** before return
      - on listening case, we can also wait.
      - tests now make sure dial does wait.
      - tests now make sure we can wait on listening case.
      Juan Batiz-Benet 提交于
    • net/id_test: refactor tests into own func · d9961893
      Juan Batiz-Benet 提交于
    • routing/mock test: kill leaked goroutine · c2b21e47
      Juan Batiz-Benet 提交于
    • fix: the docker-test's make task · 10bb354f
      Brian Tiger Chow 提交于
    • peer change: peer.Peer -> peer.ID · c84a714b
      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
      Juan Batiz-Benet 提交于
    • peer/queue/sync: remove buffering · d399a932
      Juan Batiz-Benet 提交于
    • util: fractional context · ec96a0b0
      Juan Batiz-Benet 提交于
    • threadsafe SeededRand · cc7a869e
      Juan Batiz-Benet 提交于
  2. 21 12月, 2014 1 次提交
  3. 20 12月, 2014 1 次提交
  4. 19 12月, 2014 1 次提交
  5. 18 12月, 2014 29 次提交