You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing a similar issue: I have an iPad connected to my device using USB and I'm mapping it's 22 port using iproxy. I logged downloading event output and found out that download stops working after sometime (and the event won't get fired from that point on)
I encountered this issue and I think I figured it out.
So why it hangs? It hangs on reading the input, but if there was some error on server side, nothing comes through channel.DataReceived and nothing is being written into input. It is here .
The errors are being received as extended data, so I add channe.ExtendedDataReceived += (sender, e) => input.Write(e.data, 0, e.Data.Length); and all the errors were thrown back successfully.
Off course it doesn't fix timeout issue when really no data is received from the server, but at least it doesn't hangs when errors occur.
@DsAekb We indeed have two issues here: we do not processes any data received via ExtendedDataReceived (stderr), and we do not time out when no data is received at all.
Activity
danvac commentedon Jul 14, 2017
Tested with SSH.NET-2016.1.0-beta1-bin and also my build from master and tag 2016.0.0.
danvac commentedon Aug 18, 2017
I see this report makes not much sense. After #256 will be fixed I will try to update device to version causing ScpClient.Download to hang.
ahmadalli commentedon Jan 8, 2018
I'm facing a similar issue: I have an iPad connected to my device using USB and I'm mapping it's 22 port using iproxy. I logged downloading event output and found out that download stops working after sometime (and the event won't get fired from that point on)
ahmadalli commentedon Jan 8, 2018
I don't have the path problem. I'm changing the filename to something like
123.fileDsAekb commentedon Feb 5, 2018
I encountered this issue and I think I figured it out.
So why it hangs? It hangs on reading the input, but if there was some error on server side, nothing comes through channel.DataReceived and nothing is being written into input. It is here .
The errors are being received as extended data, so I add
channe.ExtendedDataReceived += (sender, e) => input.Write(e.data, 0, e.Data.Length);and all the errors were thrown back successfully.Off course it doesn't fix timeout issue when really no data is received from the server, but at least it doesn't hangs when errors occur.
drieseng commentedon Feb 5, 2018
@DsAekb We indeed have two issues here: we do not processes any data received via ExtendedDataReceived (stderr), and we do not time out when no data is received at all.