Skip to content

[ipfs/go-bitswap] Remove DONT_HAVE when we send a cancel. #124

@Stebalien

Description

@Stebalien

If we send a cancel to a peer (because, e.g., the request for that block was canceled), we should remove any "don't have" information with respect to that peer. Otherwise, if the peer obtains the block and we suddenly decide that we care about it again, we'll fail to ask them for it.

This can actually happen when, e.g., seeking through a video that multiple peers are downloading at the same time.

Metadata

Metadata

Assignees

Labels

kind/bugA bug in existing code (including security flaws)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions