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

Migrate go-bitswap #63

Merged
merged 1,208 commits into from
Jan 27, 2023
Merged

Migrate go-bitswap #63

merged 1,208 commits into from
Jan 27, 2023
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Mar 6, 2020

  1. fix: overly aggressive session peer removal

    This commit was moved from ipfs/go-bitswap@916da78
    dirkmc authored and Stebalien committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    efada36 View commit details
    Browse the repository at this point in the history
  2. Disable flaky benchmark

    This commit was moved from ipfs/go-bitswap@2112d90
    dirkmc authored and Stebalien committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    0b89a15 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    20d9754 View commit details
    Browse the repository at this point in the history
  4. refactor: avoid unnecessary go-routine

    This commit was moved from ipfs/go-bitswap@22f0c79
    dirkmc authored and Stebalien committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    5b47aaf View commit details
    Browse the repository at this point in the history
  5. Merge branch 'fix/prune-dont-have' of https://github.com/ipfs/go-bitswap

     into fix/prune-dont-have
    
    This commit was moved from ipfs/go-bitswap@44ae8f1
    dirkmc committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    78db333 View commit details
    Browse the repository at this point in the history
  6. fix: flaky test

    This commit was moved from ipfs/go-bitswap@cc1224e
    dirkmc committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    277806a View commit details
    Browse the repository at this point in the history
  7. test: fix another flaky test

    This commit was moved from ipfs/go-bitswap@2e60342
    dirkmc committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    e8e5dff View commit details
    Browse the repository at this point in the history
  8. fix: flaky test

    This commit was moved from ipfs/go-bitswap@568a984
    dirkmc committed Mar 6, 2020
    Configuration menu
    Copy the full SHA
    eec7ee9 View commit details
    Browse the repository at this point in the history
  9. Merge pull request ipfs/go-bitswap#276 from ipfs/fix/prune-dont-have

    Be less aggressive when pruning peers from session
    
    This commit was moved from ipfs/go-bitswap@418d88c
    Stebalien authored Mar 6, 2020
    Configuration menu
    Copy the full SHA
    d939c9f View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2020

  1. feat: timeout when peer doesnt respond to want-block

    This commit was moved from ipfs/go-bitswap@bdd4629
    dirkmc committed Mar 10, 2020
    Configuration menu
    Copy the full SHA
    ee5ef3d View commit details
    Browse the repository at this point in the history
  2. docs: fix find peers log level

    This commit was moved from ipfs/go-bitswap@dbb73a6
    dirkmc committed Mar 10, 2020
    Configuration menu
    Copy the full SHA
    c863614 View commit details
    Browse the repository at this point in the history
  3. fix: flaky provider query manager (ipfs#286)

    This commit was moved from ipfs/go-bitswap@964888c
    dirkmc authored Mar 10, 2020
    Configuration menu
    Copy the full SHA
    4cfa0ab View commit details
    Browse the repository at this point in the history
  4. fix: flaky engine peer tagging test (ipfs#287)

    This commit was moved from ipfs/go-bitswap@f8ed752
    dirkmc authored Mar 10, 2020
    Configuration menu
    Copy the full SHA
    cfd5219 View commit details
    Browse the repository at this point in the history
  5. Merge pull request ipfs/go-bitswap#284 from ipfs/feat/dont-have-new-p…

    …eers
    
    Simulate DONT_HAVE when peer doesn't respond to want-block (new peers)
    
    This commit was moved from ipfs/go-bitswap@3a82e57
    Stebalien authored Mar 10, 2020
    Configuration menu
    Copy the full SHA
    a1ea260 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2020

  1. fix: re-export testinstance/testnet

    We use these outside of bitswap for testing.
    
    
    This commit was moved from ipfs/go-bitswap@b58f8fc
    Stebalien committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    e990eab View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#289 from ipfs/fix/re-export-testing

    fix: re-export testinstance/testnet
    
    This commit was moved from ipfs/go-bitswap@de62939
    Stebalien authored Mar 11, 2020
    Configuration menu
    Copy the full SHA
    6076f1e View commit details
    Browse the repository at this point in the history
  3. fix: flaky TestDontHaveTimeoutMgrTimeout

    This commit was moved from ipfs/go-bitswap@5a742ad
    dirkmc committed Mar 11, 2020
    Configuration menu
    Copy the full SHA
    c797006 View commit details
    Browse the repository at this point in the history
  4. Merge pull request ipfs/go-bitswap#293 from ipfs/fix/flaky-test-TestD…

    …ontHaveTimeoutMgrTimeout
    
    fix flaky TestDontHaveTimeoutMgrTimeout
    
    This commit was moved from ipfs/go-bitswap@df360b3
    Stebalien authored Mar 11, 2020
    Configuration menu
    Copy the full SHA
    0ced6db View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2020

  1. fix: order of session broadcast wants

    This commit was moved from ipfs/go-bitswap@b83a609
    dirkmc committed Mar 12, 2020
    Configuration menu
    Copy the full SHA
    aa3c108 View commit details
    Browse the repository at this point in the history
  2. refactor: improve sessionWants perf

    This commit was moved from ipfs/go-bitswap@73261ec
    dirkmc committed Mar 12, 2020
    Configuration menu
    Copy the full SHA
    42d1010 View commit details
    Browse the repository at this point in the history
  3. fix: flaky TestRateLimitingRequests

    This commit was moved from ipfs/go-bitswap@0945c26
    dirkmc committed Mar 12, 2020
    Configuration menu
    Copy the full SHA
    ec90079 View commit details
    Browse the repository at this point in the history
  4. Merge pull request ipfs/go-bitswap#296 from ipfs/fix/test-TestRateLim…

    …itingRequests
    
    fix flaky TestRateLimitingRequests
    
    This commit was moved from ipfs/go-bitswap@12021fa
    Stebalien authored Mar 12, 2020
    Configuration menu
    Copy the full SHA
    48f6082 View commit details
    Browse the repository at this point in the history
  5. fix: engine test TestTaggingUseful (ipfs#297)

    This commit was moved from ipfs/go-bitswap@5c18cf5
    dirkmc authored Mar 12, 2020
    Configuration menu
    Copy the full SHA
    53e16ad View commit details
    Browse the repository at this point in the history
  6. Merge pull request ipfs/go-bitswap#291 from ipfs/fix/session-broadcas…

    …t-wants
    
    Fix order of session broadcast wants
    
    This commit was moved from ipfs/go-bitswap@cd14e70
    Stebalien authored Mar 12, 2020
    Configuration menu
    Copy the full SHA
    0534f69 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2020

  1. refactor: clean up logs

    This commit was moved from ipfs/go-bitswap@ddf64ae
    dirkmc committed Mar 13, 2020
    Configuration menu
    Copy the full SHA
    3c5c056 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2020

  1. refactor: adjust log levels

    This commit was moved from ipfs/go-bitswap@cee7d2d
    dirkmc committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    a49dd71 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#299 from ipfs/refactor/log-cleanup

    Clean up logs
    
    This commit was moved from ipfs/go-bitswap@bced0f3
    Stebalien authored Mar 16, 2020
    Configuration menu
    Copy the full SHA
    e58d776 View commit details
    Browse the repository at this point in the history
  3. feat: expose the full wantlist through GetWantlist

    And expose a separate function for _just_ getting want-blocks. When the user
    runs `ipfs bitswap wantlist`, they expect to see everything the node is
    currently looking for.
    
    Co-Authored-By: dirkmc <dirkmdev@gmail.com>
    
    
    This commit was moved from ipfs/go-bitswap@808f5a0
    Stebalien committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    202651a View commit details
    Browse the repository at this point in the history
  4. Merge pull request ipfs/go-bitswap#300 from ipfs/feat/full-wantlist

    feat: expose the full wantlist through GetWantlist
    
    This commit was moved from ipfs/go-bitswap@694d2f8
    Stebalien authored Mar 16, 2020
    Configuration menu
    Copy the full SHA
    a50f325 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2020

  1. feat: remove the context from the donthavetimeoutmanager (ipfs#303)

    This removes one goroutine per peer which tends to be a pretty big deal. This
    brings go-ipfs down from 5.5 to 4.5 goroutines per peer.
    
    This commit was moved from ipfs/go-bitswap@5a278ff
    Stebalien authored Mar 17, 2020
    Configuration menu
    Copy the full SHA
    385475d View commit details
    Browse the repository at this point in the history
  2. fix: 64bit align stats (ipfs#305)

    fixes ipfs#302
    
    This commit was moved from ipfs/go-bitswap@a32feca
    Stebalien authored Mar 17, 2020
    Configuration menu
    Copy the full SHA
    202a263 View commit details
    Browse the repository at this point in the history
  3. feat: micro-optimize priority (ipfs#304)

    This commit was moved from ipfs/go-bitswap@f6db5f7
    Stebalien authored Mar 17, 2020
    Configuration menu
    Copy the full SHA
    d0b22fe View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2020

  1. feat: add a custom CID type

    This allows us to marshal/unmarshal/size protobufs without copying CID around.
    
    
    This commit was moved from ipfs/go-bitswap@4b91e9b
    Stebalien committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    0a2e7b5 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#308 from ipfs/feat/custom-cid-type

    feat: add a custom CID type
    
    This commit was moved from ipfs/go-bitswap@21d8834
    Stebalien authored Mar 19, 2020
    Configuration menu
    Copy the full SHA
    ea674aa View commit details
    Browse the repository at this point in the history
  3. test(message): test custom CID type (ipfs#309)

    This got dropped from my other patch.
    
    This commit was moved from ipfs/go-bitswap@03e6d1f
    Stebalien authored Mar 19, 2020
    Configuration menu
    Copy the full SHA
    762d2dd View commit details
    Browse the repository at this point in the history
  4. perf: add message queue benchmark

    This commit was moved from ipfs/go-bitswap@cac6420
    dirkmc committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    bd22c61 View commit details
    Browse the repository at this point in the history
  5. perf: improve extractOutgoingMessage() performance

    This commit was moved from ipfs/go-bitswap@e986294
    dirkmc committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    174d666 View commit details
    Browse the repository at this point in the history
  6. fix: race in tests

    This commit was moved from ipfs/go-bitswap@2b83916
    dirkmc committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    ebe9e03 View commit details
    Browse the repository at this point in the history
  7. refactor: reuse message queue message for perf

    This commit was moved from ipfs/go-bitswap@d2cb0fe
    dirkmc committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    d6d8d03 View commit details
    Browse the repository at this point in the history
  8. fix: virtual net race

    This commit was moved from ipfs/go-bitswap@c5a6db7
    dirkmc committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    3a8adc9 View commit details
    Browse the repository at this point in the history
  9. refactor: small changes to message queue

    This commit was moved from ipfs/go-bitswap@b4763e2
    dirkmc committed Mar 19, 2020
    Configuration menu
    Copy the full SHA
    5f5181a View commit details
    Browse the repository at this point in the history
  10. Merge pull request ipfs/go-bitswap#307 from ipfs/perf/message-queue

    Perf/message queue
    
    This commit was moved from ipfs/go-bitswap@89d39a6
    Stebalien authored Mar 19, 2020
    Configuration menu
    Copy the full SHA
    d3c082a View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2020

  1. fix: wait for sessionWantSender to shutdown before completing session…

    … shutdown
    
    This commit was moved from ipfs/go-bitswap@c3c0ad1
    dirkmc committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    630eed9 View commit details
    Browse the repository at this point in the history
  2. fix: flaky TestDontHaveTimeoutMgrTimeout (ipfs#320)

    This commit was moved from ipfs/go-bitswap@9bf0f25
    dirkmc authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    dba1971 View commit details
    Browse the repository at this point in the history
  3. fix: flaky TestSendDontHave (ipfs#321)

    This commit was moved from ipfs/go-bitswap@1287298
    dirkmc authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    1bd3344 View commit details
    Browse the repository at this point in the history
  4. fix: flaky TestSendsWantBlockToOnePeerOnly (ipfs#323)

    This commit was moved from ipfs/go-bitswap@ae75342
    dirkmc authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    876dc3c View commit details
    Browse the repository at this point in the history
  5. refactor: simplify sessionWantSender shutdown

    This commit was moved from ipfs/go-bitswap@ac258ab
    dirkmc committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    05c0d05 View commit details
    Browse the repository at this point in the history
  6. refactor: use internal context in sessionWantSender

    This commit was moved from ipfs/go-bitswap@70c3111
    dirkmc committed Mar 24, 2020
    Configuration menu
    Copy the full SHA
    aa5d143 View commit details
    Browse the repository at this point in the history
  7. Merge pull request ipfs/go-bitswap#317 from ipfs/fix/sesswantmgr-shut…

    …down
    
    wait for sessionWantSender to shutdown before completing session shutdown
    
    This commit was moved from ipfs/go-bitswap@7888679
    Stebalien authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    3da9ff1 View commit details
    Browse the repository at this point in the history
  8. chore: make pwm internals private (ipfs#315)

    This makes it easier to tell where module boundaries are.
    
    This commit was moved from ipfs/go-bitswap@7348b26
    Stebalien authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    be36301 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    901a508 View commit details
    Browse the repository at this point in the history
  10. Merge pull request ipfs/go-bitswap#325 from ipfs/fix/pmgr-log

    fix: log unexpected condition in peerWantManager.prepareSendWants()
    
    This commit was moved from ipfs/go-bitswap@93801a7
    Stebalien authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    9d3ada9 View commit details
    Browse the repository at this point in the history
  11. fix: race in SessionInterestManager (ipfs#324)

    This commit was moved from ipfs/go-bitswap@288ceff
    dirkmc authored Mar 24, 2020
    Configuration menu
    Copy the full SHA
    feabf10 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2020

  1. chore: address todo in engine.go

    This commit was moved from ipfs/go-bitswap@3895cc0
    Stebalien committed Mar 26, 2020
    Configuration menu
    Copy the full SHA
    5fe4612 View commit details
    Browse the repository at this point in the history
  2. fix: avoid copying messages multiple times on send

    Also, reduce the overhead from logging.
    
    
    This commit was moved from ipfs/go-bitswap@484399b
    Stebalien committed Mar 26, 2020
    Configuration menu
    Copy the full SHA
    9cfa597 View commit details
    Browse the repository at this point in the history
  3. feat: normalize message logging

    This commit was moved from ipfs/go-bitswap@8c7bf92
    Stebalien committed Mar 26, 2020
    Configuration menu
    Copy the full SHA
    d438a94 View commit details
    Browse the repository at this point in the history
  4. Merge pull request ipfs/go-bitswap#326 from ipfs/feat/faster-send-blocks

    avoid copying messages and improve logging
    
    This commit was moved from ipfs/go-bitswap@d39c760
    Stebalien authored Mar 26, 2020
    Configuration menu
    Copy the full SHA
    41b924e View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2020

  1. Configuration menu
    Copy the full SHA
    d18c4c0 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#332 from ipfs/fix/wantlist-gauge

    fix: ensure wantlist gauge gets decremented on disconnect
    
    This commit was moved from ipfs/go-bitswap@53af318
    Stebalien authored Apr 3, 2020
    Configuration menu
    Copy the full SHA
    6c9f559 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2020

  1. Add separate how bitswap works doc (ipfs#294)

    * docs: add separate how bitswap works doc
    
    * feat: update architecture diagram and add implementation description
    
    This commit was moved from ipfs/go-bitswap@b0f337d
    dirkmc authored Apr 7, 2020
    Configuration menu
    Copy the full SHA
    f73dc9b View commit details
    Browse the repository at this point in the history
  2. fix: path to architecture diagram (ipfs#338)

    This commit was moved from ipfs/go-bitswap@38114a6
    dirkmc authored Apr 7, 2020
    Configuration menu
    Copy the full SHA
    dd4205b View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2020

  1. Configuration menu
    Copy the full SHA
    cf0893f View commit details
    Browse the repository at this point in the history
  2. fix: in message queue only send cancel if want was sent

    This commit was moved from ipfs/go-bitswap@4800d07
    dirkmc committed Apr 10, 2020
    Configuration menu
    Copy the full SHA
    378f7df View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2020

  1. Merge pull request ipfs/go-bitswap#345 from ipfs/fix/cancel-leak

    fix: in message queue only send cancel if want was sent
    
    This commit was moved from ipfs/go-bitswap@6728add
    Stebalien authored Apr 11, 2020
    Configuration menu
    Copy the full SHA
    f610dcf View commit details
    Browse the repository at this point in the history
  2. feat: prioritize more important wants

    In case we're sending a _lot_ of wants:
    
    * Prioritize cancels.
    * Then targeted wants.
    * Finally broadcast wants.
    
    
    This commit was moved from ipfs/go-bitswap@c444535
    Stebalien committed Apr 11, 2020
    Configuration menu
    Copy the full SHA
    9432df5 View commit details
    Browse the repository at this point in the history
  3. Merge pull request ipfs/go-bitswap#346 from ipfs/feat/prioritize-wants

    feat: prioritize more important wants
    
    This commit was moved from ipfs/go-bitswap@a8af17a
    Stebalien authored Apr 11, 2020
    Configuration menu
    Copy the full SHA
    2fb1ad8 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2020

  1. fix: avoid allocating cids (ipfs#348)

    This commit was moved from ipfs/go-bitswap@906b2fb
    Stebalien authored Apr 13, 2020
    Configuration menu
    Copy the full SHA
    a1b6ce9 View commit details
    Browse the repository at this point in the history
  2. refactor: simplify messageQueue onSent

    This commit was moved from ipfs/go-bitswap@e06ac24
    dirkmc committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    12d4fe8 View commit details
    Browse the repository at this point in the history
  3. refactor: save some vars

    This commit was moved from ipfs/go-bitswap@efd006e
    dirkmc committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    0b4f1f7 View commit details
    Browse the repository at this point in the history
  4. refactor: remove unnecessary func param

    This commit was moved from ipfs/go-bitswap@6c41260
    dirkmc committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    d1da580 View commit details
    Browse the repository at this point in the history
  5. fix: only mark sent wants as sent

    This commit was moved from ipfs/go-bitswap@b6a8a73
    dirkmc committed Apr 13, 2020
    Configuration menu
    Copy the full SHA
    d0710f4 View commit details
    Browse the repository at this point in the history
  6. Merge pull request ipfs/go-bitswap#349 from ipfs/refactor/simplify-mq…

    …-onSent
    
    refactor: simplify messageQueue onSent
    
    This commit was moved from ipfs/go-bitswap@6099047
    Stebalien authored Apr 13, 2020
    Configuration menu
    Copy the full SHA
    6065241 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2020

  1. feat: optimize message sending (ipfs#350)

    Instead of copying these slices, we can just reuse them.
    
    This commit was moved from ipfs/go-bitswap@ac68698
    Stebalien authored Apr 14, 2020
    Configuration menu
    Copy the full SHA
    50c92d6 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2020

  1. Configuration menu
    Copy the full SHA
    0bc278a View commit details
    Browse the repository at this point in the history
  2. fix: stop sender when message queue shut down

    This commit was moved from ipfs/go-bitswap@b097d70
    dirkmc committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    9ad62e8 View commit details
    Browse the repository at this point in the history
  3. fix: tests

    This commit was moved from ipfs/go-bitswap@c1922c0
    dirkmc committed Apr 15, 2020
    Configuration menu
    Copy the full SHA
    5183004 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2020

  1. fix: don't hang on to disconnected peer refs

    This commit was moved from ipfs/go-bitswap@ba4b52e
    dirkmc committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    eb1ae9c View commit details
    Browse the repository at this point in the history
  2. fix: shutdown message queue when there's a send error

    This commit was moved from ipfs/go-bitswap@189564e
    dirkmc committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    4429610 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9f70e8f View commit details
    Browse the repository at this point in the history
  4. test: add more testing for ipfs_impl

    This commit was moved from ipfs/go-bitswap@b62e7fd
    dirkmc committed Apr 16, 2020
    Configuration menu
    Copy the full SHA
    026e4ba View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2020

  1. Configuration menu
    Copy the full SHA
    679bc47 View commit details
    Browse the repository at this point in the history
  2. fix: copy opts in ipfs_impl

    This commit was moved from ipfs/go-bitswap@59e7aa4
    dirkmc committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    c5233e2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    18d41d1 View commit details
    Browse the repository at this point in the history
  4. fix: perf improvement for connectEventManager

    This commit was moved from ipfs/go-bitswap@c26bd59
    dirkmc committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    05861de View commit details
    Browse the repository at this point in the history
  5. fix: simplify message queue shutdown

    This commit was moved from ipfs/go-bitswap@bdccb20
    dirkmc committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    d3472ac View commit details
    Browse the repository at this point in the history
  6. fix: avoid goroutine when receiving an error (ipfs#353)

    There's no reason to launch this async.
    
    This commit was moved from ipfs/go-bitswap@9cafdc2
    Stebalien authored Apr 17, 2020
    Configuration menu
    Copy the full SHA
    5df9dc3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a6c6da7 View commit details
    Browse the repository at this point in the history
  8. fix: ipfs_impl error handling

    This commit was moved from ipfs/go-bitswap@8894bb6
    dirkmc committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    ac97f43 View commit details
    Browse the repository at this point in the history
  9. fix: mark wants sent when they are added to a message to be sent

    This commit was moved from ipfs/go-bitswap@e6bf8af
    dirkmc authored and Stebalien committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    123abbb View commit details
    Browse the repository at this point in the history
  10. feat: optimize entry sorting in MessageQueue

    This commit was moved from ipfs/go-bitswap@2fe1405
    dirkmc committed Apr 17, 2020
    Configuration menu
    Copy the full SHA
    5d4b3f4 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2020

  1. Merge pull request ipfs/go-bitswap#351 from ipfs/refactor/conn-mgmt

    Move connection management into networking layer
    
    This commit was moved from ipfs/go-bitswap@9d9719e
    Stebalien authored Apr 18, 2020
    Configuration menu
    Copy the full SHA
    521c70c View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2020

  1. Merge pull request ipfs/go-bitswap#356 from ipfs/feat/opt-mq-sort

    feat: optimize entry sorting in MessageQueue
    
    This commit was moved from ipfs/go-bitswap@00f93fb
    Stebalien authored Apr 20, 2020
    Configuration menu
    Copy the full SHA
    1d9cc58 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2020

  1. fix: minimize time holding wantlist lock (ipfs#361)

    * fix: minimize time holding wantlist lock
    
    Instead of holding the lock the entire time we prepare a message, hold the lock
    while we retrieve the wantlist entries, process the entries without the lock,
    retake the lock, then mark entries as sent.
    
    This means:
    
    1. We never sort entries while holding the lock.
    2. We allocate exactly three times while holding the lock (once per entry list).
    
    * fix: address code review
    
    This commit was moved from ipfs/go-bitswap@9fc4a36
    Stebalien authored Apr 21, 2020
    Configuration menu
    Copy the full SHA
    5d7fcc7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ce2dad View commit details
    Browse the repository at this point in the history
  3. refactor: add reverse index to peerWantManager to speed up cancels (i…

    …pfs#364)
    
    * refactor: add reverse index to peerWantManager to speed up cancels
    
    * refactor: in peerWantManager use ForEach instead of allocating lists
    
    This commit was moved from ipfs/go-bitswap@4ce7de9
    dirkmc authored Apr 21, 2020
    Configuration menu
    Copy the full SHA
    f223da3 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2020

  1. feat: move broadcast wantlist into the peermanager (ipfs#365)

    * feat: small optimizations
    
    * feat: move broadcast wantlist into the peermanager
    
    This deduplicates some state and allows us to do less book-keeping for broadcast
    wants. We should probably rename the PeerManager to the WantManager and rename the
    WantManager to something else.
    
    * fix: lint warnings
    
    This commit was moved from ipfs/go-bitswap@2a03373
    Stebalien authored Apr 22, 2020
    Configuration menu
    Copy the full SHA
    5cfe98e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    573478d View commit details
    Browse the repository at this point in the history
  3. Merge pull request ipfs/go-bitswap#369 from ipfs/fix/over-allocated-ctx

    fix: avoid calling ctx.SetDeadline() every time we send a message
    
    This commit was moved from ipfs/go-bitswap@f4b63ee
    Stebalien authored Apr 22, 2020
    Configuration menu
    Copy the full SHA
    5e4dbaf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    780e750 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2020

  1. Merge pull request ipfs/go-bitswap#371 from ipfs/fix/dont-have-timing

    Change timing for DONT_HAVE timeouts to be more conservative
    
    This commit was moved from ipfs/go-bitswap@29b4de9
    Stebalien authored Apr 23, 2020
    Configuration menu
    Copy the full SHA
    8a31039 View commit details
    Browse the repository at this point in the history
  2. refactor: remove unused code

    This commit was moved from ipfs/go-bitswap@1274d40
    dirkmc committed Apr 23, 2020
    Configuration menu
    Copy the full SHA
    cef83ed View commit details
    Browse the repository at this point in the history
  3. Merge pull request ipfs/go-bitswap#373 from ipfs/refactor/unref-old-code

    refactor: remove unused code
    
    This commit was moved from ipfs/go-bitswap@ba0eb21
    Stebalien authored Apr 23, 2020
    Configuration menu
    Copy the full SHA
    b4ce47b View commit details
    Browse the repository at this point in the history
  4. refactor: remove WantManager

    This commit was moved from ipfs/go-bitswap@932e2d6
    dirkmc committed Apr 23, 2020
    Configuration menu
    Copy the full SHA
    6ac6ced View commit details
    Browse the repository at this point in the history
  5. fix: race in session test

    This commit was moved from ipfs/go-bitswap@02942c3
    dirkmc committed Apr 23, 2020
    Configuration menu
    Copy the full SHA
    497c51f View commit details
    Browse the repository at this point in the history
  6. fix: send CANCELs when session context is cancelled

    This commit was moved from ipfs/go-bitswap@2ac2ed6
    dirkmc committed Apr 23, 2020
    Configuration menu
    Copy the full SHA
    d03b4a0 View commit details
    Browse the repository at this point in the history
  7. Merge pull request ipfs/go-bitswap#375 from ipfs/refactor/sess-ctx-ca…

    …ncels
    
    Send CANCELs when session context is cancelled
    
    This commit was moved from ipfs/go-bitswap@26fbfbf
    Stebalien authored Apr 23, 2020
    Configuration menu
    Copy the full SHA
    8d0dcda View commit details
    Browse the repository at this point in the history
  8. Merge pull request ipfs/go-bitswap#374 from ipfs/refactor/unref-want-mgr

    refactor: remove WantManager
    
    This commit was moved from ipfs/go-bitswap@5643004
    Stebalien authored Apr 23, 2020
    Configuration menu
    Copy the full SHA
    2a5234f View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2020

  1. Add standard issue template

    This commit was moved from ipfs/go-bitswap@ac478de
    hsanjuan committed Apr 27, 2020
    Configuration menu
    Copy the full SHA
    62d249d View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2020

  1. feat: calculate message latency

    This commit was moved from ipfs/go-bitswap@6763be8
    dirkmc committed Apr 29, 2020
    Configuration menu
    Copy the full SHA
    6058fda View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2020

  1. fix: simplify latency timing

    This commit was moved from ipfs/go-bitswap@5c215f4
    dirkmc committed Apr 30, 2020
    Configuration menu
    Copy the full SHA
    4dac202 View commit details
    Browse the repository at this point in the history
  2. fix: only record latency for first response per want

    This commit was moved from ipfs/go-bitswap@af8cba8
    dirkmc committed Apr 30, 2020
    Configuration menu
    Copy the full SHA
    9971868 View commit details
    Browse the repository at this point in the history
  3. fix: discard outliers in latency calculation

    This commit was moved from ipfs/go-bitswap@a7c7865
    dirkmc committed Apr 30, 2020
    Configuration menu
    Copy the full SHA
    8a3442f View commit details
    Browse the repository at this point in the history

Commits on May 1, 2020

  1. docs: MessageQueue docs

    This commit was moved from ipfs/go-bitswap@f005819
    dirkmc committed May 1, 2020
    Configuration menu
    Copy the full SHA
    d56f8df View commit details
    Browse the repository at this point in the history
  2. fix: use one less go-routine per session (ipfs#377)

    * fix: use one less go-routine per session
    
    * fix: send cancel when GetBlocks() is cancelled (ipfs#383)
    
    * fix: send cancel when GetBlocks() is cancelled
    
    * fix: in SessionManager shutdown nil out sessions
    
    * fix: sessionWantSender perf
    
    * make sessionWantSender.SignalAvailability() non-blocking
    
    * Refactor SessionInterestManager (ipfs#384)
    
    * refactor: customize SessionInterestManager
    
    * refactor: SessionInterestManager perf
    
    This commit was moved from ipfs/go-bitswap@a2dd024
    dirkmc authored May 1, 2020
    Configuration menu
    Copy the full SHA
    6c9536b View commit details
    Browse the repository at this point in the history
  3. test: fix flaky test TestSessionBetweenPeers

    This commit was moved from ipfs/go-bitswap@373033e
    dirkmc committed May 1, 2020
    Configuration menu
    Copy the full SHA
    522cdcc View commit details
    Browse the repository at this point in the history

Commits on May 2, 2020

  1. Merge pull request ipfs/go-bitswap#386 from ipfs/feat/msg-latency

    calculate message latency
    
    This commit was moved from ipfs/go-bitswap@165b154
    Stebalien authored May 2, 2020
    Configuration menu
    Copy the full SHA
    486c683 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2020

  1. fix: return wants from engine.WantlistForPeer()

    This commit was moved from ipfs/go-bitswap@42e4a89
    dirkmc committed May 7, 2020
    Configuration menu
    Copy the full SHA
    d7517d4 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#390 from ipfs/fix/engine-wantlist

    fix: return wants from engine.WantlistForPeer()
    
    This commit was moved from ipfs/go-bitswap@5ff88cf
    Stebalien authored May 7, 2020
    Configuration menu
    Copy the full SHA
    4eea052 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2020

  1. perf: improve peer manager performance

    This commit was moved from ipfs/go-bitswap@e4f2791
    dirkmc committed May 19, 2020
    Configuration menu
    Copy the full SHA
    64b50c8 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2020

  1. perf: improve cancel wants perf

    This commit was moved from ipfs/go-bitswap@6d9c17e
    dirkmc committed May 20, 2020
    Configuration menu
    Copy the full SHA
    cbb4fee View commit details
    Browse the repository at this point in the history

Commits on May 21, 2020

  1. feat: simplify broadcast cancel logic (ipfs#399)

    Instead of tracking offsets, just create a "new" slice starting with the
    broadcast cancel slice. Under the covers, this will just use the same memory
    over and over.
    
    This commit was moved from ipfs/go-bitswap@60b07e9
    Stebalien authored May 21, 2020
    Configuration menu
    Copy the full SHA
    ecb113b View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#395 from ipfs/perf/peer-want-mgr

    Improve peer manager performance
    
    This commit was moved from ipfs/go-bitswap@0730042
    Stebalien authored May 21, 2020
    Configuration menu
    Copy the full SHA
    45841da View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2020

  1. Total wants gauge (ipfs#402)

    * feat: total wants gauge
    
    * fix: in gauges count wants regardless of which peers they're sent to
    
    * fix: want block gauge calculation
    
    * refactor: simplify peermanagerwants
    
    This commit was moved from ipfs/go-bitswap@88373cd
    dirkmc authored Jun 2, 2020
    Configuration menu
    Copy the full SHA
    55ed620 View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2020

  1. fix: ensure sessions register with PeerManager

    This commit was moved from ipfs/go-bitswap@103776e
    dirkmc committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    8ebd663 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#405 from ipfs/fix/register-session

    Ensure sessions register with PeerManager
    
    This commit was moved from ipfs/go-bitswap@1910e21
    Stebalien authored Jun 3, 2020
    Configuration menu
    Copy the full SHA
    6f58a27 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1444b49 View commit details
    Browse the repository at this point in the history
  4. fix: ensure conns are unprotected on shutdown

    This commit was moved from ipfs/go-bitswap@c7e7afc
    dirkmc committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    ab06e35 View commit details
    Browse the repository at this point in the history
  5. fix: race in tests

    This commit was moved from ipfs/go-bitswap@a38d8a9
    dirkmc committed Jun 3, 2020
    Configuration menu
    Copy the full SHA
    6e9d928 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c107987 View commit details
    Browse the repository at this point in the history
  7. Merge pull request ipfs/go-bitswap#406 from ipfs/feat/protect-conns

    If peer is first to send a block to session, protect connection
    
    This commit was moved from ipfs/go-bitswap@70bced7
    Stebalien authored Jun 3, 2020
    Configuration menu
    Copy the full SHA
    a6ee6dc View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2020

  1. fix: only track useful received data in the ledger (ipfs#411)

    Quick alternative to ipfs#407 to fix the main issue.
    
    This commit was moved from ipfs/go-bitswap@a7afff5
    Stebalien authored Jun 8, 2020
    Configuration menu
    Copy the full SHA
    7d3c257 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2020

  1. fix: avoid taking accessing the peerQueues without taking the lock

    Or, really, just avoid accessing it. We don't need it.
    
    This caused a concurrent map access panic under load.
    
    
    This commit was moved from ipfs/go-bitswap@b0cea10
    Stebalien committed Jun 10, 2020
    Configuration menu
    Copy the full SHA
    f64f9f0 View commit details
    Browse the repository at this point in the history
  2. fix: want gauge calculation

    This commit was moved from ipfs/go-bitswap@47129f7
    dirkmc committed Jun 10, 2020
    Configuration menu
    Copy the full SHA
    038064e View commit details
    Browse the repository at this point in the history
  3. fix: PeerManager signalAvailabiity() race

    This commit was moved from ipfs/go-bitswap@980ca8d
    dirkmc committed Jun 10, 2020
    Configuration menu
    Copy the full SHA
    f01b977 View commit details
    Browse the repository at this point in the history
  4. refactor: simplify PeerWantManager pending want counts

    This commit was moved from ipfs/go-bitswap@85f0e9f
    dirkmc committed Jun 10, 2020
    Configuration menu
    Copy the full SHA
    c350dbd View commit details
    Browse the repository at this point in the history
  5. fix: log error for unexpected reverse index mismatch

    This commit was moved from ipfs/go-bitswap@654e5b4
    dirkmc committed Jun 10, 2020
    Configuration menu
    Copy the full SHA
    b33736d View commit details
    Browse the repository at this point in the history
  6. Merge pull request ipfs/go-bitswap#417 from ipfs/fix/peermgr-race

    Fix PeerManager signalAvailabiity() race
    
    This commit was moved from ipfs/go-bitswap@06129d6
    Stebalien authored Jun 10, 2020
    Configuration menu
    Copy the full SHA
    553ddab View commit details
    Browse the repository at this point in the history
  7. Merge pull request ipfs/go-bitswap#416 from ipfs/fix/want-gauge

    fix want gauge calculation
    
    This commit was moved from ipfs/go-bitswap@f29c774
    Stebalien authored Jun 10, 2020
    Configuration menu
    Copy the full SHA
    29f8f54 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2020

  1. fix: don't say we're sending a full wantlist unless we are (ipfs#429)

    I'm not sure why we set "full" to true here, but this could be the source of a
    whole bunch of bidirectional sync issues. That is, if two peers are syncing off
    each other, they could repeatedly "reset" each other's wantlist to "empty".
    
    This commit was moved from ipfs/go-bitswap@72d351c
    Stebalien authored Aug 19, 2020
    Configuration menu
    Copy the full SHA
    38e601d View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2020

  1. Added WithScoreLedger Bitswap option (ipfs#430)

    * Separate decision engine ledger on two parts: score and the wantlist
    
    This is the first step to make external decision logic (tagging
    peers with score values) possible.
    
    The wantlist still resides in the original `ledger` struct while
    sent/received byte accounting and scores are extracted to the new
    `scoreledger` struct managed by the original `scoreWorker()` logic.
    The accounting is integrated into the `Engine` via `ScoreLedger`
    interface making it possible to replace the original `scoreWorker()`
    with some other logic. The interface, however, doesn't allow a
    score logic to directly touch peer tags: the logic may decide about
    score values while tagging itself is still under control of Engine.
    
    Note: with this commit it's yet not possible to replace the original
    score logic because there is no public methods for that.
    
    * Added "WithScoreLedger" Bitswap option
    
    New `WithScoreLedger(decision.ScoreLedger)` option in the `bitswap`
    package is the way to connect a custom `ScoreLedger` implementation
    to the decision engine. The `Engine` now has the corresponding
    `UseScoreLedger(ScoreLedger)` method.
    
    The `ScoreLedger` and `ScorePeerFunc` types are exposed from the
    internal `decision` package to the public one.
    
    Because its options are processed by the `Bitswap` after construction
    of its parts but before starting of the engine, the default
    `scoreLedger` initialization is moved from `newEngine()` to
    `StartWorkers()`.
    
    New `TestWithScoreLedger` test is added. The test checks for start and
    stop of the testing score ledger implementation that is specified via
    `WithScoreLedger` option.
    
    * Combine score ledger start with initialization of the score function
    
    Having a separate `Init(ScoreFunc)` method seems redundant (thx
    @dirkmc for pointing about that). As a bonus, the two-step ledger
    starting process is now enclosed in the `startScoreLedger()` function.
    
    * Let's call Stop() to stop a ScoreLedger
    
    The `Close()` method was there to stop the ledger. Let call it
    `Stop()` now.
    
    * Get return of the blank Receipt out of conditional block
    
    Explicitly form it as the final resort.
    
    Co-authored-by: Paul Wolneykien <manowar@altlinux.org>
    
    This commit was moved from ipfs/go-bitswap@fd21393
    wolneykien authored Sep 3, 2020
    Configuration menu
    Copy the full SHA
    d8ded15 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    171ab60 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2020

  1. Fix: Increment stats.MessagesSent in msgToStream() function (ipfs#441)

    * Share common code between network/ipfs_impl_test.go tests
    
    Extract the code that is common in TestMessageResendAfterError,
    TestMessageSendTimeout and TestMessageSendNotSupportedResponse to a
    separate function.
    
    * Make prepareNetwork() return two hosts and two networks
    
    Let prepareNetwork() make simmetric setup with two `ErrHost`s
    with two `impl` networks to be sure we test `impl` instances on
    both ends.
    
    * Added TestNetworkCounters test to the "network" package
    
    The test shows we have a problem with `MessagesSent` counter.
    
    * Fix: Increment stats.MessagesSent in msgToStream() function
    
    Fixes the bug with incrementing `MessagesSent` counter only in
    `SendMessage()` method if `impl`. Now it works for `MessageSender`
    too.
    
    * Allow to specify a network event listener for tests
    
    Added `listener network.Notifiee` to the `receiver` structure.
    If a listener is specified then `prepareNetwork()` connects it
    to the mock network it builds before making any connections.
    
    * Wait for all network streams are closed in testNetworkCounters
    
    Wait for all network streams are closed instead of just using a
    timeout. The timeout of 5 s is still used as a deadline (it makes
    the test to fail).
    
    * Fix: Close the MessageSender in testNetworkCounters()
    
    The `MessageSender` needs to be closed if we want all streams in
    the network to be closed.
    
    * Fix: Close MessageSender in other tests too
    
    Co-authored-by: Paul Wolneykien <manowar@altlinux.org>
    
    This commit was moved from ipfs/go-bitswap@bcf8541
    wolneykien authored Sep 10, 2020
    Configuration menu
    Copy the full SHA
    fb8d70f View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2020

  1. Add WireTap interface (ipfs#444)

    * Add WireTap interface
    
    WireTap interface can be used to access all messages send and received
    by Bitswap. This can be used to implement advanced statistics/analysis
    logic, which is beyond scope of Bitswap, but can be implemented as IPFS
    plugin.
    
    Some examples of potential applications:
     - per CID bandwidth tracker (see: https://gitcoin.co/issue/PinataCloud/apollo/2/100023631)
     - detailed per peer stats
     - intrusion detection system (IDS) implementation
    
    * Add test for WireTap
    
    This commit was moved from ipfs/go-bitswap@bc3df6b
    tzdybal authored Sep 24, 2020
    Configuration menu
    Copy the full SHA
    643065d View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2020

  1. fix: guard access to the mock wiretap with a lock

    This commit was moved from ipfs/go-bitswap@0a5174d
    Stebalien committed Nov 10, 2020
    Configuration menu
    Copy the full SHA
    47fcf13 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#446 from ipfs/fix/wt-race

    fix: guard access to the mock wiretap with a lock
    
    This commit was moved from ipfs/go-bitswap@7ca6d63
    Stebalien authored Nov 10, 2020
    Configuration menu
    Copy the full SHA
    86fde29 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2020

  1. fix: update to go 1.15 lint warnings

    This commit was moved from ipfs/go-bitswap@179650d
    Stebalien committed Nov 12, 2020
    Configuration menu
    Copy the full SHA
    70b8804 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f15898f View commit details
    Browse the repository at this point in the history
  3. Merge pull request ipfs/go-bitswap#445 from ipfs/feat/rw-close

    feat: update for go-libp2p-core 0.7.0 interface changes
    
    This commit was moved from ipfs/go-bitswap@b4720fa
    Stebalien authored Nov 12, 2020
    Configuration menu
    Copy the full SHA
    84f3047 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2020

  1. fix: remove unnecessary (and leaked) ticker

    This commit was moved from ipfs/go-bitswap@7525bae
    Stebalien committed Nov 13, 2020
    Configuration menu
    Copy the full SHA
    0fc691a View commit details
    Browse the repository at this point in the history
  2. fix: set the score ledger on start

    It's possible to start receiving and processing messages before we get around to starting.
    
    
    This commit was moved from ipfs/go-bitswap@ed0f4ed
    Stebalien committed Nov 13, 2020
    Configuration menu
    Copy the full SHA
    2c783dc View commit details
    Browse the repository at this point in the history
  3. Merge pull request ipfs/go-bitswap#447 from ipfs/fix/panic-and-leak

    fix: set the score ledger on start
    
    This commit was moved from ipfs/go-bitswap@95cb1a0
    Stebalien authored Nov 13, 2020
    Configuration menu
    Copy the full SHA
    f2e1722 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2020

  1. Configuration menu
    Copy the full SHA
    22e7099 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2021

  1. Configuration menu
    Copy the full SHA
    21cce50 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#465 from ipfs/fix/startup-race

    fix a startup race by creating the blockstoremanager process on init
    
    This commit was moved from ipfs/go-bitswap@d1d4afa
    Stebalien authored Feb 26, 2021
    Configuration menu
    Copy the full SHA
    1bd02f9 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2021

  1. ignore transient connections

    This commit was moved from ipfs/go-bitswap@cf23160
    vyzo committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    4773b3c View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#470 from ipfs/fix/transient-conns

    ignore transient connections
    
    This commit was moved from ipfs/go-bitswap@0fa3975
    vyzo authored Apr 1, 2021
    Configuration menu
    Copy the full SHA
    feacea7 View commit details
    Browse the repository at this point in the history

Commits on Apr 15, 2021

  1. fix staticcheck

    This commit was moved from ipfs/go-bitswap@f4fae3a
    Cory Schwartz committed Apr 15, 2021
    Configuration menu
    Copy the full SHA
    b25b462 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2021

  1. Merge pull request ipfs/go-bitswap#474 from coryschwartz/feat/fix-sta…

    …ticcheck
    
    fix staticcheck
    
    This commit was moved from ipfs/go-bitswap@963dc8f
    Stebalien authored Apr 21, 2021
    Configuration menu
    Copy the full SHA
    a3fdc17 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2021

  1. Configuration menu
    Copy the full SHA
    67ee573 View commit details
    Browse the repository at this point in the history

Commits on Apr 23, 2021

  1. Merge pull request ipfs/go-bitswap#477 from ipfs/schomatis/impl/newSt…

    …reamToPeer-with-timeout
    
    fix(network): impl: add timeout in newStreamToPeer call
    
    This commit was moved from ipfs/go-bitswap@c13e78b
    Stebalien authored Apr 23, 2021
    Configuration menu
    Copy the full SHA
    82687b3 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2021

  1. fix: fix alignment of stats struct in virtual network

    This needs to be at the top of the "allocated" struct. Otherwise, 32bit
    tests fail.
    
    
    This commit was moved from ipfs/go-bitswap@09ad29c
    Stebalien committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    ae9d0af View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#478 from ipfs/fix/alignment

    fix: fix alignment of stats struct in virtual network
    
    This commit was moved from ipfs/go-bitswap@9de1804
    Stebalien authored Apr 30, 2021
    Configuration menu
    Copy the full SHA
    69e518f View commit details
    Browse the repository at this point in the history
  3. test: deflake large-message test

    This commit was moved from ipfs/go-bitswap@7c482ec
    Stebalien committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    37c73da View commit details
    Browse the repository at this point in the history
  4. test: deflake donthave timeout test

    Give it some more time. We're not testing the _exact_ timeout.
    
    
    This commit was moved from ipfs/go-bitswap@4293230
    Stebalien committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    250f85f View commit details
    Browse the repository at this point in the history
  5. Merge pull request ipfs/go-bitswap#479 from ipfs/fix/deflake-large-me…

    …ssage-test
    
    test: deflake large-message test
    
    This commit was moved from ipfs/go-bitswap@038c893
    Stebalien authored Apr 30, 2021
    Configuration menu
    Copy the full SHA
    8fb0b41 View commit details
    Browse the repository at this point in the history
  6. test: deflake engine test

    This commit was moved from ipfs/go-bitswap@1198579
    Stebalien committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    3aef0c6 View commit details
    Browse the repository at this point in the history
  7. Merge pull request ipfs/go-bitswap#480 from ipfs/fix/deflake-tag-test

    test: deflake engine test
    
    This commit was moved from ipfs/go-bitswap@6ea1681
    Stebalien authored Apr 30, 2021
    Configuration menu
    Copy the full SHA
    87653e1 View commit details
    Browse the repository at this point in the history

Commits on May 12, 2021

  1. remove Makefile

    It was only needed for gx.
    
    
    This commit was moved from ipfs/go-bitswap@2e52daa
    marten-seemann committed May 12, 2021
    Configuration menu
    Copy the full SHA
    04c7fb6 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#483 from ipfs/remove-makefile

    remove Makefile
    
    This commit was moved from ipfs/go-bitswap@0e81f7c
    Stebalien authored May 12, 2021
    Configuration menu
    Copy the full SHA
    e650a28 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2021

  1. run gofmt -s

    This commit was moved from ipfs/go-bitswap@5cd913a
    web3-bot committed Jun 13, 2021
    Configuration menu
    Copy the full SHA
    696aa9e View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2021

  1. Merge pull request ipfs/go-bitswap#485 from ipfs/web3-bot/sync

    sync: update CI config files
    
    This commit was moved from ipfs/go-bitswap@1ab2321
    Stebalien authored Jun 24, 2021
    Configuration menu
    Copy the full SHA
    6c3c7ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aed42ed View commit details
    Browse the repository at this point in the history
  3. fix(network): fix TestNetworkCounters

    count message received before callback so that the count is always accurate at the time of counting
    
    
    This commit was moved from ipfs/go-bitswap@072bd11
    hannahhoward authored and Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    e89ff30 View commit details
    Browse the repository at this point in the history
  4. fix(bitswap): add send don't have timeout option

    The TestSessionWithPeers test was most commonly failing cause of a don't
    have timeout, which triggered simulated don't have message for all CIDs
    on the peer with content, which triggered a re-broadcast, causing peers
    with no content to receive additional wants
    
    
    This commit was moved from ipfs/go-bitswap@d1a5503
    hannahhoward authored and Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    f2b9294 View commit details
    Browse the repository at this point in the history
  5. refactor(bitswap): rename simulateDontHaves option

    s/SetSendDontHavesOnTimeout/SetSimulateDontHavesOnTimeout
    
    
    This commit was moved from ipfs/go-bitswap@f0e84a9
    hannahhoward authored and Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    d0956dc View commit details
    Browse the repository at this point in the history
  6. fix(messagequeue): fix flaky TestDontHaveMgr tests

    convery DontHaveTimeoutMgr to use clock interface, use mocks in tests to make tests predictable and
    fast
    
    
    This commit was moved from ipfs/go-bitswap@e30c1e9
    hannahhoward authored and Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    d0625e3 View commit details
    Browse the repository at this point in the history
  7. refactor(messagequeue): rename ambigous channel

    This commit was moved from ipfs/go-bitswap@38aae7e
    hannahhoward authored and Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    b0f7312 View commit details
    Browse the repository at this point in the history
  8. Merge pull request ipfs/go-bitswap#495 from ipfs/fix/fix-dont-have-ma…

    …nager-timeouts
    
    Fix flaky DontHaveTimeoutManger tests
    
    This commit was moved from ipfs/go-bitswap@bfac454
    Stebalien authored Jun 24, 2021
    Configuration menu
    Copy the full SHA
    deefc55 View commit details
    Browse the repository at this point in the history
  9. fix(messagequeue): fix flaky MessageQueue tests

    mock time in message queue to fix tests
    
    
    This commit was moved from ipfs/go-bitswap@9ccb51c
    hannahhoward authored and Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    315215a View commit details
    Browse the repository at this point in the history
  10. fix: Nil dereference while using SetSendDontHaves

    This option is used by the benchmark to simulate the old bitswap
    comportement.
    
    This follows the same refactoring idea as done in 22e7099.
    
    It was crashing since it was trying to access the `sendDontHaves`
    property of `bs.engine` but `bs.engine` is initialized right after
    the options are applied, not before.
    
    
    This commit was moved from ipfs/go-bitswap@f2d9b5a
    Jorropo authored and Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    867748a View commit details
    Browse the repository at this point in the history
  11. docs: better engineSetSendDontHaves description

    Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
    
    This commit was moved from ipfs/go-bitswap@3f031b4
    Jorropo authored and Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    9f393b5 View commit details
    Browse the repository at this point in the history
  12. Merge pull request ipfs/go-bitswap#497 from ipfs/fix/message-queue-tests

    Fix flaky tests in message queue
    
    This commit was moved from ipfs/go-bitswap@eac35a4
    Stebalien authored Jun 24, 2021
    Configuration menu
    Copy the full SHA
    a46d640 View commit details
    Browse the repository at this point in the history
  13. fix: hold the task worker lock when starting task workers

    Otherwise, we could try to shutdown at the same time and race.
    
    
    This commit was moved from ipfs/go-bitswap@24c356f
    Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    0f4401d View commit details
    Browse the repository at this point in the history
  14. Merge pull request ipfs/go-bitswap#488 from Jorropo/fix/nildereferanc…

    …e-if-using-SetSendDontHave-option
    
    fix: Nil dereference while using SetSendDontHaves
    
    This commit was moved from ipfs/go-bitswap@f2385cb
    Stebalien authored Jun 24, 2021
    Configuration menu
    Copy the full SHA
    d496037 View commit details
    Browse the repository at this point in the history
  15. Merge pull request ipfs/go-bitswap#504 from ipfs/fix/task-worker-coun…

    …t-race
    
    fix: hold the task worker lock when starting task workers
    
    This commit was moved from ipfs/go-bitswap@d48cee0
    Stebalien authored Jun 24, 2021
    Configuration menu
    Copy the full SHA
    8c62bb5 View commit details
    Browse the repository at this point in the history
  16. remove unused haves parameter on Engine.ReceiveFrom

    This commit was moved from ipfs/go-bitswap@f644f8b
    marten-seemann authored and Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    b186c21 View commit details
    Browse the repository at this point in the history
  17. introduce a ledger that stores which peers are waiting for a Cid

    When receiving a new block (Engine.ReceiveFrom), we shouldn't have to loop over
    all peers in order to determine if they need this block. Instead, use a map to
    save which peers are waiting for a give Cid.
    
    
    This commit was moved from ipfs/go-bitswap@2bfc771
    marten-seemann authored and Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    a37cc73 View commit details
    Browse the repository at this point in the history
  18. chore: go fmt

    This commit was moved from ipfs/go-bitswap@aa9bbf8
    Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    602e77b View commit details
    Browse the repository at this point in the history
  19. fix: cleanup ledger on mismatch

    This commit was moved from ipfs/go-bitswap@96382b1
    Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    0edb93f View commit details
    Browse the repository at this point in the history
  20. Merge pull request ipfs/go-bitswap#486 from ipfs/optimize-receive-from

    optimize the lookup which peers are waiting for a given block
    
    This commit was moved from ipfs/go-bitswap@bbbbc66
    Stebalien authored Jun 24, 2021
    Configuration menu
    Copy the full SHA
    4862a80 View commit details
    Browse the repository at this point in the history
  21. chore: update deps

    And rebuild protobufs.
    
    
    This commit was moved from ipfs/go-bitswap@34e4dc3
    Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    4bebfb8 View commit details
    Browse the repository at this point in the history
  22. Merge pull request ipfs/go-bitswap#484 from ipfs/chore/update-libp2p

    chore: update deps
    
    This commit was moved from ipfs/go-bitswap@ca8049d
    Stebalien authored Jun 24, 2021
    Configuration menu
    Copy the full SHA
    ec8d143 View commit details
    Browse the repository at this point in the history
  23. fix(decision): fix a datarace on disconnect

    We need to hold the ledger's lock while reading from it.
    
    
    This commit was moved from ipfs/go-bitswap@4ffb5e9
    Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    ad9db9b View commit details
    Browse the repository at this point in the history
  24. Merge pull request ipfs/go-bitswap#508 from ipfs/fix/disconnect-data-…

    …race
    
    fix(decision): fix a datarace on disconnect
    
    This commit was moved from ipfs/go-bitswap@5f2fd63
    Stebalien authored Jun 24, 2021
    Configuration menu
    Copy the full SHA
    1f14023 View commit details
    Browse the repository at this point in the history
  25. fix: make blockstore cancel test less timing dependent

    1. More blocks so we have more time.
    2. Lock less.
    3. Put without the delay (so we can put more blocks without slowing
    things down).
    
    
    This commit was moved from ipfs/go-bitswap@a45ff1b
    Stebalien committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    f50ec7d View commit details
    Browse the repository at this point in the history
  26. Merge pull request ipfs/go-bitswap#507 from ipfs/test/blockstore-test…

    …-timing
    
    fix: make blockstore cancel test less timing dependent
    
    This commit was moved from ipfs/go-bitswap@26c6c49
    Stebalien authored Jun 24, 2021
    Configuration menu
    Copy the full SHA
    0ac12b2 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2021

  1. Configuration menu
    Copy the full SHA
    9d43811 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#523 from ipfs/fix/race

    fix: fix a map access race condition in the want index
    
    This commit was moved from ipfs/go-bitswap@5c2c537
    Stebalien authored Jul 30, 2021
    Configuration menu
    Copy the full SHA
    c6dc84c View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2021

  1. More stats, knobs and tunings (ipfs#514)

    * add configurability options for TaskWorkerCount and EngineTaskWorkerCount,
    * add option for maximum outstanding bytes per peer
    * add prometheus metrics for how long it takes to send messages, the number of pending and active tasks, and the number of pending and active block tasks
    * add many of the unexported defaults to a defaults subpackage of the internal package
    
    * feat: tighter send timeouts
    
    1. Minimum timeout of 10s.
    2. We add 2s due to latencies.
    3. Minimum bandwidth of 100kbit/s.
    4. Maximum message send time of 2min (way more time than necessary).
    
    Co-authored-by: Adin Schmahmann <adin.schmahmann@gmail.com>
    Co-authored-by: Steven Allen <steven@stebalien.com>
    
    This commit was moved from ipfs/go-bitswap@2b51297
    petar authored Aug 18, 2021
    Configuration menu
    Copy the full SHA
    911ab0b View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2021

  1. fix: reduce log verbosity

    These log messages are frequent and were causing lock contention at scale.
    
    
    This commit was moved from ipfs/go-bitswap@6dce2a1
    Stebalien authored and guseggert committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    ff5afd4 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2021

  1. fix: fix race on "responsive" check

    fixes ipfs#527
    
    
    This commit was moved from ipfs/go-bitswap@e7f60bf
    Stebalien committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    5c0d350 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2021

  1. feat: cache the materialized wantlist

    This can become a hot-spot.
    
    
    This commit was moved from ipfs/go-bitswap@a19b05e
    Stebalien committed Sep 7, 2021
    Configuration menu
    Copy the full SHA
    9701906 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2021

  1. Merge pull request ipfs/go-bitswap#528 from ipfs/fix/responsive-check…

    …-race
    
    fix: fix race on "responsive" check
    
    This commit was moved from ipfs/go-bitswap@fef017b
    Stebalien authored Sep 15, 2021
    Configuration menu
    Copy the full SHA
    04cf894 View commit details
    Browse the repository at this point in the history
  2. fix: rename wiretap to tracer

    To avoid... confusion and angst. This also removes the option to
    _disable_ it, because there's really no need (not safe to do at runtime
    anyways).
    
    
    This commit was moved from ipfs/go-bitswap@d3c024e
    Stebalien committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    11a8c51 View commit details
    Browse the repository at this point in the history
  3. Merge pull request ipfs/go-bitswap#531 from ipfs/chore/rename-wiretap

    fix: rename wiretap to tracer
    
    This commit was moved from ipfs/go-bitswap@958b163
    Stebalien authored Sep 15, 2021
    Configuration menu
    Copy the full SHA
    3a26de9 View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2021

  1. test(providerquerymanager): fix timings

    Fix several sensitive timings on ProviderQueryManager tests
    that could lead to intermittent failures in CI
    
    
    This commit was moved from ipfs/go-bitswap@e002540
    hannahhoward committed Oct 8, 2021
    Configuration menu
    Copy the full SHA
    b73686f View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2021

  1. enable custom task prioritization logic

    This commit was moved from ipfs/go-bitswap@d5168fe
    synzhu committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    3672986 View commit details
    Browse the repository at this point in the history
  2. add peer to TaskInfo

    This commit was moved from ipfs/go-bitswap@4166289
    synzhu committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    8757464 View commit details
    Browse the repository at this point in the history
  3. move task comparator wrapper to separate function

    This commit was moved from ipfs/go-bitswap@68ae194
    synzhu committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    b22ad0c View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2021

  1. fix undeclared name error

    This commit was moved from ipfs/go-bitswap@b67d113
    synzhu committed Oct 13, 2021
    Configuration menu
    Copy the full SHA
    df1dd18 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2021

  1. Merge pull request ipfs/go-bitswap#534 from ipfs/fix/flaky-test-rate-…

    …limiting-requests
    
    Fix ProviderQueryManager test timings
    
    This commit was moved from ipfs/go-bitswap@462f628
    Stebalien authored Oct 14, 2021
    Configuration menu
    Copy the full SHA
    868c9e0 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2021

  1. fix: reduce receive contention

    This means we need to frequently re-take this lock, but it also means we
    don't hold it while calling other functions that might block (e.g.,
    while pushing jobs).
    
    
    This commit was moved from ipfs/go-bitswap@10d1b2c
    Stebalien committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    68d09d4 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2021

  1. Merge pull request ipfs/go-bitswap#536 from ipfs/fix/receive-contention

    fix: reduce receive contention
    
    This commit was moved from ipfs/go-bitswap@1ab28b8
    Stebalien authored Oct 26, 2021
    Configuration menu
    Copy the full SHA
    07bb124 View commit details
    Browse the repository at this point in the history
  2. test: make sure the cache is cleared when changing the wantlist

    This test explicitly calls entries to make sure the cache is
    materialized.
    
    
    This commit was moved from ipfs/go-bitswap@e6c8199
    Stebalien committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    f2bddb8 View commit details
    Browse the repository at this point in the history
  3. Merge pull request ipfs/go-bitswap#530 from ipfs/feat/cache-wantlist

    feat: cache the materialized wantlist
    
    This commit was moved from ipfs/go-bitswap@d48cbc1
    Stebalien authored Oct 26, 2021
    Configuration menu
    Copy the full SHA
    148294a View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2021

  1. Add TaskComparator test

    This commit was moved from ipfs/go-bitswap@1a344b1
    synzhu committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    39f1c04 View commit details
    Browse the repository at this point in the history
  2. Add type aliases for TaskInfo and TaskComparator

    This commit was moved from ipfs/go-bitswap@b124653
    synzhu committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    47fedf0 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2021

  1. Merge pull request ipfs/go-bitswap#535 from smnzhu/master

    Enable custom task prioritization logic
    
    This commit was moved from ipfs/go-bitswap@b35a29b
    Stebalien authored Oct 28, 2021
    Configuration menu
    Copy the full SHA
    5731bae View commit details
    Browse the repository at this point in the history
  2. fix: optimize handling for peers with lots of tasks

    This should fix a CPU hotspot when peers request tons of tiny blocks.
    
    
    This commit was moved from ipfs/go-bitswap@cc28305
    Stebalien committed Oct 28, 2021
    Configuration menu
    Copy the full SHA
    543d85c View commit details
    Browse the repository at this point in the history
  3. Merge pull request ipfs/go-bitswap#537 from ipfs/feat/optimize-has-ne…

    …w-info
    
    fix: optimize handling for peers with lots of tasks
    
    This commit was moved from ipfs/go-bitswap@5aa76cb
    Stebalien authored Oct 28, 2021
    Configuration menu
    Copy the full SHA
    1bb4f34 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2021

  1. feat: plumb through contexts (ipfs#539)

    This commit was moved from ipfs/go-bitswap@d74d658
    guseggert authored Nov 10, 2021
    Configuration menu
    Copy the full SHA
    f8826c6 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2021

  1. Change incorrect function name in README (ipfs#541)

    NewFromIPFSHost -> NewFromIpfsHost
    
    This commit was moved from ipfs/go-bitswap@ee3cce7
    susarlanikhilesh authored Nov 17, 2021
    Configuration menu
    Copy the full SHA
    bd52ae4 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2021

  1. configurable target message size

    This commit was moved from ipfs/go-bitswap@ada55fc
    whyrusleeping committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    1cc4747 View commit details
    Browse the repository at this point in the history
  2. Merge pull request ipfs/go-bitswap#546 from ipfs/feat/allow-config-me…

    …ssage-target
    
    configurable target message size
    
    This commit was moved from ipfs/go-bitswap@dbfc6a1
    Stebalien authored Dec 14, 2021
    Configuration menu
    Copy the full SHA
    8a1063c View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2022

  1. feat: add peer block filter option (ipfs#549)

    * feat: add peer block filter option
    
    This feature lets a user configure a function that will
    allow / deny request for a block coming from a peer.
    
    This commit was moved from ipfs/go-bitswap@b6f0cc7
    laurentsenta authored Mar 17, 2022
    Configuration menu
    Copy the full SHA
    d8f0673 View commit details
    Browse the repository at this point in the history
  2. Use ipld.ErrNotFound

    This commit was moved from ipfs/go-bitswap@b892ed1
    hsanjuan authored and Jorropo committed Mar 17, 2022
    Configuration menu
    Copy the full SHA
    b8a2174 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2022

  1. Configuration menu
    Copy the full SHA
    424c9ec View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2022

  1. feat: coalesce and queue connection event handling (ipfs#565)

    * feat: batch and queue connection event handling
    
    * address feedback
    
    * fix: mark responsive on new connection
    
    This commit was moved from ipfs/go-bitswap@a06a9ea
    Stebalien authored Jun 13, 2022
    Configuration menu
    Copy the full SHA
    396c4d8 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2022

  1. feat: add basic tracing (ipfs#562)

    This adds tracing spans to the costly Bitswap entry points. It doesn't
    instrument the bitswap internals, which will take some time. In
    go-ipfs, this will at least let us know the contribution of Bitswap to
    the overall request handling time.
    
    This also plumbs contexts through internally so that they reach the
    content routing APIs, so that traces are propagated through and we can
    start instrumenting e.g. the DHT.
    
    This commit was moved from ipfs/go-bitswap@b18a91d
    guseggert authored Jun 14, 2022
    Configuration menu
    Copy the full SHA
    1d5a1fb View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2022

  1. Configuration menu
    Copy the full SHA
    1327f92 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2022

  1. Merge pull request ipfs/go-bitswap#569 from ipfs/marco/rm-travis-dep

    Remove dependency on travis package from go-libp2p-testing
    
    This commit was moved from ipfs/go-bitswap@8497368
    MarcoPolo authored Jul 5, 2022
    Configuration menu
    Copy the full SHA
    f50bb2c View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2022

  1. chore: Update .github/workflows/stale.yml [skip ci]

    This commit was moved from ipfs/go-bitswap@5ffb3ec
    web-flow authored Jul 21, 2022
    Configuration menu
    Copy the full SHA
    0a12d4c View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2022

  1. feat: don't add blocks to the datastore

    This leave the responsibility and choice to do so to the caller, typically go-blockservice.
    
    This has several benefit:
    - untangle the code
    - allow to use an exchange as pure block retrieval
    - avoid double add
    
    Close ipfs/kubo#7956
    
    
    This commit was moved from ipfs/go-bitswap@a052ec9
    MichaelMure authored and Jorropo committed Jul 28, 2022
    Configuration menu
    Copy the full SHA
    8e28164 View commit details
    Browse the repository at this point in the history
  2. chore: bump deps & cleanup dont add

    This commit was moved from ipfs/go-bitswap@9bbccf8
    Jorropo committed Jul 28, 2022
    Configuration menu
    Copy the full SHA
    4f2f126 View commit details
    Browse the repository at this point in the history
  3. Merge pull request ipfs/go-bitswap#571 from MichaelMure/no-block-add

    Don't add blocks to the datastore
    
    This commit was moved from ipfs/go-bitswap@1d1c6bf
    Jorropo authored Jul 28, 2022
    Configuration menu
    Copy the full SHA
    4170132 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2022

  1. chore: remove goprocess from blockstoremanager

    This commit was moved from ipfs/go-bitswap@4fcd291
    guseggert authored and Jorropo committed Aug 5, 2022
    Configuration menu
    Copy the full SHA
    236ab37 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8ebb187 View commit details
    Browse the repository at this point in the history
  3. refactor: remove the need of generics

    This commit was moved from ipfs/go-bitswap@696d69d
    Jorropo committed Aug 5, 2022
    Configuration menu
    Copy the full SHA
    ad3603b View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2022

  1. test: remove TestTracer

    This test is exceptionally racy and IMO useless (you can go read the 10 lines of code making up tracing and convaince yourself it's working.)
    
    
    This commit was moved from ipfs/go-bitswap@1ac4824
    Jorropo committed Aug 6, 2022
    Configuration menu
    Copy the full SHA
    bb2458f View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2022

  1. Configuration menu
    Copy the full SHA
    0e7466c View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2022

  1. Configuration menu
    Copy the full SHA
    2c754a5 View commit details
    Browse the repository at this point in the history
  2. fix: message queue test races on Windows

    This commit was moved from ipfs/go-bitswap@b8fd335
    guseggert committed Aug 13, 2022
    Configuration menu
    Copy the full SHA
    10c47cb View commit details
    Browse the repository at this point in the history
  3. Merge pull request ipfs/go-bitswap#570 from Jorropo/split

    feat: split client and server
    
    This commit was moved from ipfs/go-bitswap@5b013e0
    guseggert authored Aug 13, 2022
    Configuration menu
    Copy the full SHA
    ec22e05 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2022

  1. chore: update go-libp2p v0.22.0

    This remove the github.com/libp2p/go-libp2p-loggables because AFAIT this is not usefull anymore (we use tracing now).
    
    If people care about uuids in logs, we should log sessions in go-log instead.
    
    
    This commit was moved from ipfs/go-bitswap@475c27c
    Jorropo committed Sep 1, 2022
    Configuration menu
    Copy the full SHA
    8364285 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2022

  1. Configuration menu
    Copy the full SHA
    a64dcb1 View commit details
    Browse the repository at this point in the history
  2. fix: incorrect type in the WithTracer polyfill option

    This commit was moved from ipfs/go-bitswap@1ccd151
    Jorropo committed Sep 8, 2022
    Configuration menu
    Copy the full SHA
    2e3f08c View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2022

  1. Configuration menu
    Copy the full SHA
    c81c82e View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2023

  1. Configuration menu
    Copy the full SHA
    c3491de View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2023

  1. bitswap: mark all hybrid, client, server and network tests flaky

    I've applied the jackhammer approach, there is probably correct tests in
    this set, but I'll leave finding them (and fixing bad ones) to someone
    else (including potentially future me).
    
    To enable flaky tests pass RUN_FLAKY_TESTS=1 environement variable.
    Jorropo committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    0a9cfb6 View commit details
    Browse the repository at this point in the history
  2. chore: release v0.4.0

    Jorropo committed Jan 27, 2023
    Configuration menu
    Copy the full SHA
    3080787 View commit details
    Browse the repository at this point in the history