1. 10 May, 2015 1 commit
  2. 01 May, 2015 2 commits
  3. 27 Apr, 2015 1 commit
  4. 20 Apr, 2015 5 commits
    • Tor Arne Vestbø's avatar
      Remove daemon InitDone guard in interrupt handler · bfd12114
      Tor Arne Vestbø authored
      Instead of just terminating right there and then, we cancel the
      context, and let the daemon exit cleanly. This make take a few
      seconds, as the node builder and its child processes do not
      care too much about the context state while building nodes,
      but this can be improved by injecting checks for ctx.Done()
      before time-consuming steps.
      bfd12114
    • Tor Arne Vestbø's avatar
      Handle ipfs command interruption by cancelling the command context · cf6a268c
      Tor Arne Vestbø authored
      Instead of assuming the command is the daemon command and closing
      the node, which resulted in bugs like #1053, we cancel the context
      and let the context children detect the cancellation and gracefully
      clean up after themselves.
      
      The shutdown logging has been moved into the daemon command, where
      it makes more sense, so that commands like ping will not print out
      the same output on cancellation.
      cf6a268c
    • Jeromy's avatar
      make ipfs understand the new migration · c419a489
      Jeromy authored
      c419a489
    • Jeromy's avatar
      f3fbedf3
    • Juan Batiz-Benet's avatar
      remove debugerrors · 140cd1fd
      Juan Batiz-Benet authored
      We now consider debugerrors harmful: we've run into cases where
      debugerror.Wrap() hid valuable error information (err == io.EOF?).
      I've removed them from the main code, but left them in some tests.
      Go errors are lacking, but unfortunately, this isn't the solution.
      
      It is possible that debugerros.New or debugerrors.Errorf should
      remain still (i.e. only remove debugerrors.Wrap) but we don't use
      these errors often enough to keep.
      140cd1fd
  5. 31 Mar, 2015 1 commit
  6. 14 Mar, 2015 1 commit
  7. 12 Mar, 2015 1 commit
  8. 09 Mar, 2015 1 commit
  9. 07 Mar, 2015 2 commits
    • anarcat's avatar
      expand the ports documentation · 5cdd8b5d
      anarcat authored
      i took @jbenet's suggestion, but reorganised it a bit to *not* suggest what is actually warned against later. :)
      5cdd8b5d
    • anarcat's avatar
      document how to change daemon ports · fb8a1ab1
      anarcat authored
      this more clearly explains that the daemon is listening on the network. it also hints as to how to change the listening ports. this is also related to #874
      fb8a1ab1
  10. 04 Mar, 2015 2 commits
  11. 20 Feb, 2015 1 commit
  12. 15 Feb, 2015 3 commits
  13. 11 Feb, 2015 1 commit
  14. 08 Feb, 2015 1 commit
    • Kevin Wallace's avatar
      gateway: attempt to resolve hostname to ipfs path · 084cdc3e
      Kevin Wallace authored
      This allows someone to host a static site by pointing a TXT record at their
      content in IPFS, and a CNAME record at an IPFS gateway.
      
      Note that such a setup technically violates RFC1912 (section 2.4; "A CNAME
      record is not allowed to coexist with any other data."), but tends to work in
      practice.
      
      We may want to consider changing the DNS->IPFS resolution scheme to allow this
      scenario to be RFC-compliant (e.g. store the mapping on a well-known subdomain
      to allow CNAME records on the domain itself).
      
      License: MIT
      Signed-off-by: default avatarKevin Wallace <kevin@pentabarf.net>
      084cdc3e
  15. 06 Feb, 2015 3 commits
  16. 05 Feb, 2015 1 commit
  17. 02 Feb, 2015 2 commits
  18. 01 Feb, 2015 2 commits
    • Juan Batiz-Benet's avatar
      daemon: fix output + time waiting · c3722558
      Juan Batiz-Benet authored
      c3722558
    • Juan Batiz-Benet's avatar
      test/sharness: fix errors · f1d34a2a
      Juan Batiz-Benet authored
      - core: daemon stdout print to cmd + daemon init checks
      - core: fixed bug where the gateway was printed as "API"
      - sharness/test-lib: daemon init checks
      - sharness/test-lib: portable TCP port check
      - sharness/init: fix test bits output
      - sharness: use common hashes in one place.
      - move t0100-http-gateway -> t0111-gateway-writable
      - sharness: test-lib funcs for gateway config
      - sharness/t0111-gateway-writable: use sh funcs
      - sharness/t0111-gateway-writable: fixes
        - escape all vars (always `cmd "$VAR"` never `cmd $VAR`)
        - use $FILEPATH, not $path
        - last test seems to fail
      f1d34a2a
  19. 31 Jan, 2015 2 commits
  20. 29 Jan, 2015 1 commit
  21. 27 Jan, 2015 1 commit
  22. 24 Jan, 2015 3 commits
  23. 22 Jan, 2015 1 commit
    • Brian Tiger Chow's avatar
      refactor(core) extract corehttp package · fadedf9e
      Brian Tiger Chow authored
      PACKAGE DOCUMENTATION
      
      package corehttp
      
          FUNCTIONS
      
          func GatewayOption(n *core.IpfsNode, mux *http.ServeMux) error
      
          func ListenAndServe(n *core.IpfsNode, addr ma.Multiaddr, options
          ...ServeOption) error
      
          func WebUIOption(n *core.IpfsNode, mux *http.ServeMux) error
      
          TYPES
      
          type ServeOption func(*core.IpfsNode, *http.ServeMux) error
      
          func DaemonOption(cctx commands.Context) ServeOption
      fadedf9e
  24. 14 Jan, 2015 1 commit