[ipfs/go-bitswap] Return an error if WithTargetMessageSize is too large
Open
need/triage
- Dominant language
- Go
- Stars
- 316
- Forks
- 163
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 8
Description
It should be less than 2MiB (ideally less than 1MiB). Messages over 4MiB will be rejected by the remote endpoint per protocol.
The tricky part here is that there's no good way to return an error from this constructor, so this change will require a bit of a refactor.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.