basic-ftp
Advanced tools
Comparing version 2.14.0 to 2.14.1
@@ -8,6 +8,6 @@ --- | ||
**Describe the bug** | ||
A clear and concise description of what the bug is. Did you rule out network issues or problems specific to the FTP server you are using? | ||
A clear and concise description of what the bug is. Did you rule out network issues? Do you encounter the same issue when using another FTP server? | ||
**Example code** | ||
The shortest possible, standalone code example that shows the issue. Please don't just copy-paste some lines from your project. It makes it difficult to rule out issues in other parts of your code. | ||
A short and standalone code example that demonstrates the issue. Don't copy-paste a few lines from your project, it makes it difficult to rule out issues in other parts of your code. | ||
@@ -14,0 +14,0 @@ **Console output** |
# Changelog | ||
## 2.14.1 | ||
- Make it possible to reconnect after closing the FTP context. | ||
## 2.14.0 | ||
@@ -4,0 +8,0 @@ |
@@ -38,5 +38,9 @@ "use strict"; | ||
close() { | ||
this.log("Closing sockets."); | ||
this.log("Closing connections."); | ||
this._handler = undefined; | ||
this._task = undefined; | ||
this._closeSocket(this._socket); | ||
this._closeSocket(this._dataSocket); | ||
// Set a new socket instance to make reconnecting possible. | ||
this.socket = new Socket(); | ||
} | ||
@@ -43,0 +47,0 @@ |
{ | ||
"name": "basic-ftp", | ||
"version": "2.14.0", | ||
"version": "2.14.1", | ||
"description": "FTP client for Node.js with support for explicit FTPS over TLS.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/ftp", |
109920
2373