ScpClient.Download hangs under some circumstances regardless OperationTimout set
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- C#
- Estrellas
- 4.4k
- Forks
- 993
- Merge medio
- 9 d 21 h
- PR fusionados (30 d)
- 1
Descripción
ScpClient.Download hangs under some circumstances
ScpClient scp = null;
try
{
scp = new ScpClient(ip.ToString(), int.Parse(data.PortSSH), data.Login, data.Password);
scp.OperationTimeout = new TimeSpan(0, 0, 10);
scp.Connect();
scp.Download(download, save);
There is probably some issue on server side, as scp on linux server ends like this:
[login@host ~]$ scp login@xxx.xxx.xxx.xxx:/file.exp ~/
login@xxx.xxx.xxx.xxx's password:
exec request failed on channel 0
This discussion can give you some more info, it seems to be related.
https://forum.mikrotik.com/viewtopic.php?t=104485
Server will be most probably updated, so I may not be able to try it again.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Start at the ScpClient.Connect and ScpClient.Download entry points and inspect how OperationTimeout is applied when the server returns "exec request failed on channel 0". The issue names no repository files or tests, so first reproduce the hang with a server exhibiting this response; done means the client no longer hangs and the timeout behavior is covered by an appropriate test.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- csharp
- Área
- networking
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100