One deadline for a queue status query over SSH

Abierto
#1,145 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
73/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
55
Forks
26
Merge medio
3 d 3 h
PR fusionados (30 d)
8

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ReactionMechanismGenerator/ARC

Todos los issues de ReactionMechanismGenerator/ARC

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.