avoid breaking network compatibility
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- rust
- Lĩnh vực
- networking
Hướng nghiên cứu
Bắt đầu bằng cách đọc multiaddr parser và Protocol representation, tập trung vào cách các đoạn giao thức và đối số của chúng được kiểm tra tính hợp lệ. Issue được hoàn thành khi có thể phân biệt các địa chỉ hợp lệ về cú pháp nhưng chưa biết với các địa chỉ không hợp lệ mà không làm hỏng việc giao tiếp với các node cũ hơn, và hành vi này được kiểm thử bằng các bài test của parser.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
As witnessed in https://github.com/libp2p/rust-libp2p/issues/3244#issuecomment-1352743020 adding a new protocol to the multiaddr implementation breaks communication between nodes using the new feature and nodes using an older version of this library. This would be warranted if understanding the meaning of a multiaddr is always mandatory, but there are cases (like the identify protocol) where that is not the case.
Breakage for such cases could be avoided by adding a new layer of validation: besides syntactically invalid and fully understood there could be a class that is syntactically valid but not fully understood.
Due to the design of multiaddr syntax, this is not a trivial question: a protocol segment may have arguments, like /tcp/1234, and without understanding the protocol name it is impossible to know the number of arguments. It would have been possible to choose different separator characters (like /tcp=1324 or some such), but that ship has sailed. So the only way to express syntactically valid but not fully understood addresses is to add a variant like Protocol::Unknown(Cow<'a, str>), where /tcp2/1234 would lead to two unknown segments (with tcp2 and 1234 payloads, respectively).
The alternative to handling this in this library is to always deserialize a multiaddr property as String first and then check whether it can be fully parsed if needed. However, given that multiaddr aims to offer an abstraction over various addressing schemes, I think it is reasonable to expect that this scheme itself is extensible and handles extensions in a graceful fashion.
- Ngôn ngữ chính
- Rust
- Star
- 101
- Fork
- 56
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của multiformats/rust-multiaddr
-
support custom multiaddrĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
multiformats/rust-multiaddr#134 · 1 bình luận ·
-
Mark `/wss` as deprecatedĐang mởdifficulty:easy help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 47/100
multiformats/rust-multiaddr#100 ·
-
Remove `from_url` moduleĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
-
feat: validate onion3 addressesĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Purpose of Arc in MultiaddrĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
multiformats/rust-multiaddr#90 · 2 bình luận ·
Tất cả issue của multiformats/rust-multiaddr
Issue tương tự
-
backend::vllm diffusion multimodal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
lambdaclass/ethrex#7329 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
shadowsocks/shadowsocks-rust#2186 · 1 bình luận ·
-
[Chore]: Inconsistent wasm-pack binary invocation in justfile breaks cross-platform executionĐang mởC-bug S-awaiting-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
juspay/hyperswitch#14479 ·
Maintainer thường phản hồi trong vòng 1 ngày