One deadline for a queue status query over SSH

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

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
73/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
backend, networking

Hướng nghiên cứu

Find SSHClient._send_command_to_server and inspect how it opens the channel, reads stdout and stderr, and checks the exit status. Use a fake channel that yields a line every 0.1 seconds to verify a 1 second timeout raises TimeoutError within about 1.5 seconds and closes the channel.

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

Mô tả

Follow-up from a Copilot review on #1093 (comment 4729079800); not a v2.0.0 blocker.

SSHClient._send_command_to_server(timeout=...) passes the timeout to paramiko, which applies it
to each blocking read. A command that keeps writing output and never exits can stay in
readlines() past queue_query_timeout, so the retry and outage-limit logic never runs. No
shipped check_status_command does that, but a user's custom command might. Read stdout and
stderr with non-blocking recv/recv_stderr against one time.monotonic() deadline that spans
channel open, drain and exit status, close the channel at the deadline, and raise
TimeoutError. Test: a fake channel that yields a line every 0.1 s forever, with a 1 s timeout;
assert TimeoutError within about 1.5 s and that the channel is closed.

Ngôn ngữ chính
Python
Star
55
Fork
26
Merge trung bình
3 ngày 3 giờ
Pull request đã merge (30 ngày)
8

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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 ReactionMechanismGenerator/ARC

Tất cả issue của ReactionMechanismGenerator/ARC

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.