Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some fixes to bitswap + dht #155

Merged
merged 63 commits into from
Oct 19, 2014
Merged

Some fixes to bitswap + dht #155

merged 63 commits into from
Oct 19, 2014

Commits on Oct 18, 2014

  1. add local to net/conn

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    1b1ef6a View commit details
    Browse the repository at this point in the history
  2. command help spacing

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    d2671af View commit details
    Browse the repository at this point in the history
  3. bitswap dials peers

    Important bugfix. Otherwise bitswap cannot message peers
    the node has not connected to yet :(
    jbenet committed Oct 18, 2014
    4 Configuration menu
    Copy the full SHA
    1555ce7 View commit details
    Browse the repository at this point in the history
  4. dht handleAddProviders adds addr in msg

    Otherwise don't have the peer's target address.
    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    0117fb1 View commit details
    Browse the repository at this point in the history
  5. removed DialAddr

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    a2d55f3 View commit details
    Browse the repository at this point in the history
  6. no longer store incoming addrs

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    d113aa8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    577f8fe View commit details
    Browse the repository at this point in the history
  8. remove old pkg

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    0e22892 View commit details
    Browse the repository at this point in the history
  9. meant to call net.DialPeer

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    a5a7d99 View commit details
    Browse the repository at this point in the history
  10. logging + tweaks

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    4b5906e View commit details
    Browse the repository at this point in the history
  11. iiii -> peerToQuery

    (that wasn't mine :p)
    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    c894b1d View commit details
    Browse the repository at this point in the history
  12. fix up FindProvidersAsync

    whyrusleeping authored and jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    c77ed6d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4189d50 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    afe85ce View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    a8330f1 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    be5f976 View commit details
    Browse the repository at this point in the history
  17. fix core NewNode not setting network field, and added new json serial…

    …izer for diagnostics
    whyrusleeping authored and jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    b2bd684 View commit details
    Browse the repository at this point in the history
  18. add file i had forgotten to

    whyrusleeping authored and jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    779af0e View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    0051629 View commit details
    Browse the repository at this point in the history
  20. make test fail instead of hang

    whyrusleeping authored and jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    1a7fac4 View commit details
    Browse the repository at this point in the history
  21. make vendor

    @whyrusleeping `make vendor` or travis fails
    jbenet committed Oct 18, 2014
    1 Configuration menu
    Copy the full SHA
    3a28466 View commit details
    Browse the repository at this point in the history
  22. fixed old swarm test

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    f10b4bd View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    60cd0f1 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    0b97d29 View commit details
    Browse the repository at this point in the history
  25. dht tests with context

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    18cfe02 View commit details
    Browse the repository at this point in the history
  26. move IDFromPubKey to peer pkg

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    e989d6f View commit details
    Browse the repository at this point in the history
  27. better peer gen

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    ccaa490 View commit details
    Browse the repository at this point in the history
  28. reworked Conn

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    5681e27 View commit details
    Browse the repository at this point in the history
  29. updated Conn and Swarm

    This Commit changes the relationship between Conn and Swarm.
    After this, Conn is significantly more autonomous, and follows
    an interface.
    
    From here, it will be very easy to make the MultiConn (that
    handles multiple Conns per peer).
    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    1edc5a4 View commit details
    Browse the repository at this point in the history
  30. colored logfmt

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    e7d7133 View commit details
    Browse the repository at this point in the history
  31. swarm bugfix: dial peer out

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    5d9b1f8 View commit details
    Browse the repository at this point in the history
  32. logging friendliness

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    08af98d View commit details
    Browse the repository at this point in the history
  33. fixed data races

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    8aed79c View commit details
    Browse the repository at this point in the history
  34. can just use ctx.Done

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    e45a6ce View commit details
    Browse the repository at this point in the history
  35. conn: raw []byte, not msg

    This commit actually removes the previously introduced
    chan net.NetMessage, in favor of raw []byte. It plays
    nicer with crypto/spipe, and it makes more sense in the
    context of a "single connection", i.e. I already know the
    peer I'm talking to, from the connection. The NetMessage
    additional Peer is useful swarm and up.
    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    7a7bf8d View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    8065b61 View commit details
    Browse the repository at this point in the history
  37. test closing/cancellation

    - does end properly
    - no goroutines leaked!
    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    ffba031 View commit details
    Browse the repository at this point in the history
  38. separated out secure conn

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    afed188 View commit details
    Browse the repository at this point in the history
  39. swarm: msg wrapping

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    d47115b View commit details
    Browse the repository at this point in the history
  40. moved versionhandshake to conn

    jbenet committed Oct 18, 2014
    Configuration menu
    Copy the full SHA
    f2e428d View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2014

  1. Configuration menu
    Copy the full SHA
    3ab3170 View commit details
    Browse the repository at this point in the history
  2. moved XOR keyspace -> util

    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    20d1d35 View commit details
    Browse the repository at this point in the history
  3. added to net/conn interface

    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    0078264 View commit details
    Browse the repository at this point in the history
  4. simultaneous open should work for now

    It's a patch, really. it's not the full multiconn fix.
    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    f8d70f3 View commit details
    Browse the repository at this point in the history
  5. keyspace XOR naming

    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    331e433 View commit details
    Browse the repository at this point in the history
  6. make vendor

    @whyrusleeping pre-commit hook?
    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    c2e649b View commit details
    Browse the repository at this point in the history
  7. Fixed panic on closer

    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    2308143 View commit details
    Browse the repository at this point in the history
  8. fixed tests

    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    4783332 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c2a228f View commit details
    Browse the repository at this point in the history
  10. broke out dial + listen

    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    68b85c9 View commit details
    Browse the repository at this point in the history
  11. added multiconn

    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    a4e4923 View commit details
    Browse the repository at this point in the history
  12. listen: conn fate sharing

    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    113c44f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    fc5b0c2 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    58fdcad View commit details
    Browse the repository at this point in the history
  15. multiconn in swarm

    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    63d6ee6 View commit details
    Browse the repository at this point in the history
  16. added msg counters to logs

    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    29ab6de View commit details
    Browse the repository at this point in the history
  17. evil deadlock that wasn't.

    important to always reread your code.
    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    aa70bba View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    d17292a View commit details
    Browse the repository at this point in the history
  19. moved ctxcloser to own pkg

    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    3d2ba37 View commit details
    Browse the repository at this point in the history
  20. leaking goroutine ++ in travis

    for some reason travis has more goroutines running by def.
    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    565f9b8 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    b29367a View commit details
    Browse the repository at this point in the history
  22. close conns directly in tests

    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    4c178f8 View commit details
    Browse the repository at this point in the history
  23. more lenient time

    need to switch away from timing tests. its very annoying.
    Should use proper go sync, as in
    https://www.youtube.com/watch?v=ndmB0bj7eyw
    jbenet committed Oct 19, 2014
    Configuration menu
    Copy the full SHA
    7c4596a View commit details
    Browse the repository at this point in the history