1. 13 Aug, 2018 1 commit
  2. 12 Aug, 2018 1 commit
  3. 09 Aug, 2018 1 commit
  4. 07 Aug, 2018 1 commit
  5. 05 Aug, 2018 1 commit
  6. 29 Jul, 2018 1 commit
  7. 01 Jun, 2018 2 commits
  8. 30 Mar, 2018 1 commit
  9. 28 Feb, 2018 1 commit
  10. 23 Feb, 2018 1 commit
  11. 21 Nov, 2017 1 commit
    • vyzo's avatar
      namesys/pubsub: publisher and resolver · e45df729
      vyzo authored
      Commits:
      namesys: pubsub Publisher and Resolver
      namesys/pubsub: pacify code climate.
      namesys/pubsub: timeout for rendezvous
      namesys/pubsub: filter self in bootstrap connections
      namesys/pubsub: Publish to the correct topic
      
      License: MIT
      Signed-off-by: default avatarvyzo <vyzo@hackzen.org>
      
      namesys/pubsub: unit  test
      
      Commits:
      namesys/pubsub: test
      namesys/pubsub_test: pacify code climate
      namesys/pubsub: update test to use extant mock routing
      
      License: MIT
      Signed-off-by: default avatarvyzo <vyzo@hackzen.org>
      
      namesys/pubsub: integrate namesys pubsub
      
      namesys: integrate pubsub resolvers
      namesys/pubsub_test: tweak delays
      - trying to make travis happy.
      namesys/pubsub: fix duplicate bootstraps
      - subscription key is topic, not ipnskey.
      namesys/pubsub: no warning needed on cancellation
      namesys/pubsub: warning for receive errors
      - and more informative error messages at that.
      namesys/pubsub_test: smaller test
      - make it work with seemingly low fdlimits in travis/macosx.
        also, more informative test failures.
      namesys/pubsub: add delay to let pubsub perform handshake
      namesys/pubsub: update gx imports
      namesys/pubsub_test: preconnect publisher, reduce delays
      - preconnects the publisher to the receivers in order to avoid bootstrap
        flakiness with connectivity problems in travis.
        reduces sleeps to 1s for flood propagation (3s seems excessive with 5 hosts).
      namesys/pubsub: drop named return values in resolveOnce
      - per review comment.
      namesys/pubsub: check errors
      namesys/pubsub: store bytes in resolver datastore
      namesys/pubsub: resolver Cancel
      - for canceling subscriptions, pre whyrusleeping's request.
      namesys/pubsub: fix resolution without /ipns prefix
      - also improve the logging a bit.
      namesys/pubsub: don't resolve own keys through pubsub
      namesys/pubsub: signal ErrResolveFailed on resolution failure
      namesys/pubsub: use sync datastore, resolver lock only for subs
      namesys/pubsub_test: coverage for Cancel
      
      License: MIT
      Signed-off-by: default avatarvyzo <vyzo@hackzen.org>
      
      namesys/pubsub: parallelize dht and pubsub publishing
      
      Commits:
      namesys/pubsub: code cosmetics
      namesys: parallelize publishing with dht and pubsub
      namesys/pubsub: periodically reprovide topic rendezvous
      namesys/pubsub: cancelation for rendezvous goroutine
      namesys/pubsub: log ipns record seqno on publish
      
      License: MIT
      Signed-off-by: default avatarvyzo <vyzo@hackzen.org>
      
      namesys/pubsub: error checking
      
      License: MIT
      Signed-off-by: default avatarvyzo <vyzo@hackzen.org>
      
      namesys/pubsub: --enable-namesys-pubsub option and management
      
      Commits:
      package.json: update go-libp2p-blankhost
      namesys: fix stale package imports
      update go-testutil
      namesys/pubsub: reduce bootstrap provide period to 8hr
      namesys/pubsub: try to extract the key from id first
      option to enable ipns pubsub: --enable-namesys-pubsub
      ipfs name pubsub management subcommands
      corehttp/gateway_test: mockNamesys needs to implement GetResolver
      pacify code climate
      
      License: MIT
      Signed-off-by: default avatarvyzo <vyzo@hackzen.org>
      
      namesys/pubsub: pubsub sharness test
      
      test/sharness: test for ipns pubsub
      namesys/pubsub: return boolean indicator on Cancel
      package.json: remove duplicate entry for go-testutil
      update gx deps, testutil to 1.1.12
      fix jenkins failure: use tabs in t0183-namesys-pubsub
      t0183: use 4 spaces for tabification
      
      License: MIT
      Signed-off-by: default avatarvyzo <vyzo@hackzen.org>
      
      namesys/pubsub: update for new command interface
      
      License: MIT
      Signed-off-by: default avatarvyzo <vyzo@hackzen.org>
      
      namesys/pubsub: fix sharness test for broken MacOS echo
      
      echo -n "" should print -n, but hey it's a mac.
      
      License: MIT
      Signed-off-by: default avatarvyzo <vyzo@hackzen.org>
      e45df729
  12. 17 Nov, 2017 1 commit
  13. 12 Jul, 2017 1 commit
  14. 20 Apr, 2017 1 commit
  15. 06 Mar, 2017 1 commit
  16. 12 Feb, 2017 1 commit
  17. 06 Oct, 2016 1 commit
  18. 26 Aug, 2016 1 commit
  19. 24 Jun, 2016 1 commit
  20. 17 Apr, 2016 2 commits
  21. 11 Apr, 2016 1 commit
  22. 07 Apr, 2016 1 commit
  23. 30 Mar, 2016 1 commit
  24. 09 Mar, 2016 1 commit
  25. 11 Feb, 2016 1 commit
  26. 31 Jan, 2016 2 commits
  27. 30 Jan, 2016 2 commits
  28. 30 Sep, 2015 1 commit
  29. 20 May, 2015 2 commits
    • W. Trevor King's avatar
      namesys: Add recursive resolution · 3ead2443
      W. Trevor King authored
      This allows direct access to the earlier protocol-specific Resolve
      implementations.  The guts of each protocol-specific resolver are in
      the internal resolveOnce method, and we've added a new:
      
        ResolveN(ctx, name, depth)
      
      method to the public interface.  There's also:
      
        Resolve(ctx, name)
      
      which wraps ResolveN using DefaultDepthLimit.  The extra API endpoint
      is intended to reduce the likelyhood of clients accidentally calling
      the more dangerous ResolveN with a nonsensically high or infinite
      depth.  On IRC on 2015-05-17, Juan said:
      
      15:34 <jbenet> If 90% of uses is the reduced API with no chance to
        screw it up, that's a huge win.
      15:34 <wking> Why would those 90% not just set depth=0 or depth=1,
        depending on which they need?
      15:34 <jbenet> Because people will start writing `r.Resolve(ctx, name,
        d)` where d is a variable.
      15:35 <wking> And then accidentally set that variable to some huge
        number?
      15:35 <jbenet> Grom experience, i've seen this happen _dozens_ of
        times. people screw trivial things up.
      15:35 <wking> Why won't those same people be using ResolveN?
      15:36 <jbenet> Because almost every example they see will tell them to
        use Resolve(), and they will mostly stay away from ResolveN.
      
      The per-prodocol versions also resolve recursively within their
      protocol.  For example:
      
        DNSResolver.Resolve(ctx, "ipfs.io", 0)
      
      will recursively resolve DNS links until the referenced value is no
      longer a DNS link.
      
      I also renamed the multi-protocol ipfs NameSystem (defined in
      namesys/namesys.go) to 'mpns' (for Multi-Protocol Name System),
      because I wasn't clear on whether IPNS applied to the whole system or
      just to to the DHT-based system.  The new name is unambiguously
      multi-protocol, which is good.  It would be nice to have a distinct
      name for the DHT-based link system.
      
      Now that resolver output is always prefixed with a namespace and
      unprefixed mpns resolver input is interpreted as /ipfs/,
      core/corehttp/ipns_hostname.go can dispense with it's old manual
      /ipfs/ injection.
      
      Now that the Resolver interface handles recursion, we don't need the
      resolveRecurse helper in core/pathresolver.go.  The pathresolver
      cleanup also called for an adjustment to FromSegments to more easily
      get slash-prefixed paths.
      
      Now that recursive resolution with the namesys/namesys.go composite
      resolver always gets you to an /ipfs/... path, there's no need for the
      /ipns/ special case in fuse/ipns/ipns_unix.go.
      
      Now that DNS links can be things other than /ipfs/ or DHT-link
      references (e.g. they could be /ipns/<domain-name> references) I've
      also loosened the ParsePath logic to only attempt multihash validation
      on IPFS paths.  It checks to ensure that other paths have a
      known-protocol prefix, but otherwise leaves them alone.
      
      I also changed some key-stringification from .Pretty() to .String()
      following the potential deprecation mentioned in util/key.go.
      3ead2443
    • W. Trevor King's avatar
      namesys/interface: Expand package docs to discuss mutable names · 03260a92
      W. Trevor King authored
      What they are, why you'd use them, and which command-line tools you
      can use to access this functionality.
      03260a92
  30. 27 Apr, 2015 1 commit
  31. 31 Mar, 2015 1 commit
  32. 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
  33. 10 Feb, 2015 1 commit
  34. 28 Jan, 2015 1 commit
  35. 02 Jan, 2015 1 commit
    • Juan Batiz-Benet's avatar
      crypto -> p2p/crypto · cc0d7c9b
      Juan Batiz-Benet authored
      The crypto package moves into p2p. Nothing in it so far is ipfs
      specific; everything is p2p-general.
      cc0d7c9b