EZSP over TCP does not recover after ConnectionResetError and emits unawaited SerialProtocol.disconnect warning

Đang mở
#729 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
45/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
backend, networking

Hướng nghiên cứu

Start by tracing how the EZSP TCP connection handles ConnectionResetError and how disconnect and reconnect are scheduled; the issue does not name files or tests. Reproduce a remote TCP reset and check both recovery and the unawaited SerialProtocol.disconnect warning. Done means the connection reconnects and Zigbee devices become available without restarting Home Assistant Core.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

When using an EZSP coordinator over TCP, a connection reset from the remote TCP endpoint leaves bellows/ZHA in a non-functional state. The connection loss is detected, but no successful reconnect occurs. Home Assistant still shows the ZHA config entry as loaded, while all Zigbee devices remain unavailable until the Home Assistant Core process is restarted.

This has now been reproduced multiple times.

Related ZHA issue: zigpy/zha#819

Environment

  • bellows: 0.49.2
  • Python
Ngôn ngữ chính
Python
Star
221
Fork
104
Merge trung bình
5 ngày 15 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của zigpy/bellows

Tất cả issue của zigpy/bellows

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.