Skip to content

Commit 709c7c6

Browse files
authored
Merge pull request #518 from ipfs/release-v0.16.0
Release 0.16.0
2 parents 521f8d4 + df09068 commit 709c7c6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+140
-6240
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,25 @@ The following emojis are used to highlight certain changes:
2020

2121
### Removed
2222

23+
### Security
24+
25+
## [v0.16.0]
26+
27+
### Changed
28+
29+
* 🛠 `boxo/namesys`: now fails when multiple valid DNSLink entries are found for the same domain. This used to cause undefined behavior before. Now, we return an error, according to the [specification](https://dnslink.dev/).
30+
31+
### Removed
32+
33+
* 🛠 `boxo/gateway`: removed support for undocumented legacy `ipfs-404.html`. Use [`_redirects`](https://specs.ipfs.tech/http-gateways/web-redirects-file/) instead.
34+
* 🛠 `boxo/namesys`: removed support for legacy DNSLink entries at the root of the domain. Use [`_dnslink.` TXT record](https://docs.ipfs.tech/concepts/dnslink/) instead.
35+
* 🛠 `boxo/coreapi`, an intrinsic part of Kubo, has been removed and moved to `kubo/core/coreiface`.
36+
2337
### Fixed
2438

25-
### Security
39+
* `boxo/gateway`
40+
* a panic (which is recovered) could sporadically be triggered inside a CAR request, if the right [conditions were met](https://github.com/ipfs/boxo/pull/511).
41+
* no longer emits `http: superfluous response.WriteHeader` warnings when an error happens.
2642

2743
## [v0.15.0]
2844

bitswap/client/client.go

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,21 @@ var log = logging.Logger("bitswap-client")
4444
// bitswap instances
4545
type Option func(*Client)
4646

47-
// ProviderSearchDelay overwrites the global provider search delay
47+
// ProviderSearchDelay sets the initial dely before triggering a provider
48+
// search to find more peers and broadcast the want list. It also partially
49+
// controls re-broadcasts delay when the session idles (does not receive any
50+
// blocks), but these have back-off logic to increase the interval. See
51+
// [defaults.ProvSearchDelay] for the default.
4852
func ProviderSearchDelay(newProvSearchDelay time.Duration) Option {
4953
return func(bs *Client) {
5054
bs.provSearchDelay = newProvSearchDelay
5155
}
5256
}
5357

54-
// RebroadcastDelay overwrites the global provider rebroadcast delay
58+
// RebroadcastDelay sets a custom delay for periodic search of a random want.
59+
// When the value ellapses, a random CID from the wantlist is chosen and the
60+
// client attempts to find more peers for it and sends them the single want.
61+
// [defaults.RebroadcastDelay] for the default.
5562
func RebroadcastDelay(newRebroadcastDelay delay.D) Option {
5663
return func(bs *Client) {
5764
bs.rebroadcastDelay = newRebroadcastDelay
@@ -168,7 +175,7 @@ func New(parent context.Context, network bsnet.BitSwapNetwork, bstore blockstore
168175
dupMetric: bmetrics.DupHist(ctx),
169176
allMetric: bmetrics.AllHist(ctx),
170177
provSearchDelay: defaults.ProvSearchDelay,
171-
rebroadcastDelay: delay.Fixed(time.Minute),
178+
rebroadcastDelay: delay.Fixed(defaults.RebroadcastDelay),
172179
simulateDontHavesOnTimeout: true,
173180
}
174181

bitswap/internal/defaults/defaults.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@ const (
3333
// FIXME: expose this in go-verifcid.
3434
MaximumHashLength = 128
3535
MaximumAllowedCid = binary.MaxVarintLen64*4 + MaximumHashLength
36+
37+
// RebroadcastDelay is the default delay to trigger broadcast of
38+
// random CIDs in the wantlist.
39+
RebroadcastDelay = time.Minute
3640
)

bootstrap/bootstrap.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"sync/atomic"
1010
"time"
1111

12-
logging "github.com/ipfs/go-log"
12+
logging "github.com/ipfs/go-log/v2"
1313
"github.com/jbenet/goprocess"
1414
goprocessctx "github.com/jbenet/goprocess/context"
1515
periodicproc "github.com/jbenet/goprocess/periodic"

coreiface/block.go

Lines changed: 0 additions & 37 deletions
This file was deleted.

coreiface/coreapi.go

Lines changed: 0 additions & 61 deletions
This file was deleted.

coreiface/dag.go

Lines changed: 0 additions & 13 deletions
This file was deleted.

coreiface/dht.go

Lines changed: 0 additions & 27 deletions
This file was deleted.

coreiface/errors.go

Lines changed: 0 additions & 10 deletions
This file was deleted.

coreiface/idfmt.go

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)