Broken Pipe is not an error; it's a feature
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- python
- Lĩnh vực
- cli, networking
Hướng nghiên cứu
The failure appears when the meshtastic CLI is run with --tcp against a node, using --get security.public_key and --nodes, and the BrokenPipeError [Errno 32] is printed before the next line reads Connected to Radio. Start by reproducing that loop against a TCP node and tracing where the broken pipe is raised and caught in the Python CLI and TCP interface code. The issue asks for a decision on whether this should be renamed or hidden, and it also leaves the remaining 0.5% of failures unexplained, so there is no clear finish line yet.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Programming embedded systems is no easy feat. Getting an MCU to do the right thing is easy. Making sure that it can gracefully recover from every anomoly is the art. When we hang a solar node on a tower, we expect it to recover from cloudy days and heavy traffic. The Meshtastic development team has done a good job supporting a wide variety of devices.
I have been putting my stable of Heltec devices through its paces, working them hard and putting them up wet.
Here's a snippet of what I asked a node to do 2000 times.
for ((i=0; i<loops; i++))
do
echo " "
echo "Series $i of $loops"
meshtastic --tcp $DUTIP --get security.public_key
meshtastic --tcp $DUTIP --nodes --show-fields user.shortName,user.publicKey,since
done
./test.nodes.analysis.sh
That generated 32 MB of terminal output, mostly error messages, dominated by BrokenPipeError: [Errno 32] Broken pipe. It wasn't an error at all. The next line was Connected to Radio. Then my request was fulfilled correctly.
Sure, somethig went wrong, but the system recovered and did what it was asked to do. Broken Pipe isn't an error. It's a condition that occurred 93% of the time in the course of doing what the user asked.
Test series planned: 2000
Series completed: 2000
Meshtastic commands executed: 4000
All Broken pipes: 3737
Unexpected OS Error, Errno 104: 5
--reset No route: 0
PKI_UNKNOWN_PUBKEY: 0
PKI_SEND_FAIL_PUBLIC_KEY: 0
NO_CHANNEL: 0
security.public_key gotten okay: 1997
nodelist gotten okay: 1996
Ninety-three percent (93.4%) of these two simple meshtastic commands generate [Errno 32]. There is no significant difference between responses to the two commands.
Yes, there are still 0.5% of these two commands failing. That will require some more sleuthing.
In the mean time, since Broken Pipe isn't a showstopper, let's rename it and bury the messages. It is, apparentlty, part of normal operation.
- Ngôn ngữ chính
- Python
- Star
- 855
- Fork
- 355
- Merge trung bình
- 3 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 meshtastic/python
-
BLE: node unreachable on Linux after pairing — bluez auto-reconnect holds the single connectionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
meshtastic/python#972 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: Can't run on TermuxCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
meshtastic/python#969 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
meshtastic/python#506 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
meshtastic/python#985 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Undocumented `--set` choicesCó thể đã có người làm @Cryptoteep đã nhận 54 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
meshtastic/python#978 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của meshtastic/python
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
pimutils/vdirsyncer#1242 ·
-
backlog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sagemathinc/sagebrush#2768 ·
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 82/100
vllm-project/vllm-ascend#23791 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
QuantConnect/lean-cli#792 ·
Maintainer thường phản hồi trong vòng 1 ngày