spmjs / node-scp2

[MAINTAINER WANTED] A pure javascript scp program based on ssh2.
384 stars 96 forks source link

Checking if connection ended before ready #81

Open yuvalshkolar opened 7 years ago

yuvalshkolar commented 7 years ago

When using the module against BitVise SSH Server, In some scenarios the connection was refused but error wasn't sent, But the connection was ready, and then just suddenly ended. In that case, the callback under "ready" will be never called and the code is "hanged". Now, if the connection was ended before being ready, the callback will be called.

deanshub commented 7 years ago

👍 I need this too