mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-12 01:21:21 +00:00
fe30849eeca89e15567295cb198f4cc40d410365
Also add warn if parsing of a packet fails, so problems with for example packet sizes can more easily be detected. Reasoning: The previous 2048 bytes is already larger than the recommend size by [rfc6762](https://tools.ietf.org/html/rfc6762#page-46), which recommends a packet size that fits within the interface MTU. Nevertheless the rfc also states, that if more data needs to be transmitted one should rely on IP fragments, which would only pose problems when interfacing with devices not understanding IP fragments. The standard also imposes a strict upper limit of 9000 bytes. Therefore raising `recv_buffer` to 4096 seems sensible, given that we already exceed the recommend size and given that we are not restricting the size when sending in any way. Meaning the implementation already sends packets larger than recommended, just can't handle them on reception.
Central repository for work on libp2p
This repository is the central place for Rust development of the libp2p spec.
Warning: While we are trying our best to be compatible with other libp2p implementations, we cannot guarantee that this is the case considering the lack of a precise libp2p specifications.
Documentation
How to use the library?
- Main documentation: https://docs.rs/libp2p
Where to ask questions?
- In the Rust section of https://discuss.libp2p.io.
- In the #libp2p IRC channel on freenode.
- By opening an issue in this repository.
Notable users
(open a pull request if you want your project to be added here)
Languages
Rust
99.8%
JavaScript
0.2%