Open JackieLin opened 10 years ago
I'm facing the same issue. Retries work if I comment out the client.close(), but I think the connection over time will eventually drop. If I let it close completely, and retry I get:
path.js:299 return splitPathRe.exec(filename).slice(1); ^ RangeError: Maximum call stack size exceeded
Anyone figured out how to do a retry successfully?
I just created a new instance of the client for the retry and it works.
Hello:
node-scp2
is a good tool to upload or download file from remote. When I useclient.scp
method innode-webkit
, I meet a problem: first time the code run perfectly, but when I click the upload button to run this code again, it throw an exception. It refuse me. After I look over the scp2 source code, I found this inscp.js
file:This problem is because that after
client.scp
method, it close the connection automatically, so next time when I run this method, the code throw an error!I suggest that whether
client.scp
method can add a parameter like autoclose: false?? so user can choose whether the connection should be closed or not.Thanks!!