(err, destroy, callback)
| 302 | } |
| 303 | |
| 304 | errorConnecting(err, destroy, callback) { |
| 305 | this.log('warning', `There was an error when trying to connect to the host ${this.endpointFriendlyName}`, err); |
| 306 | if (destroy) { |
| 307 | //there is a TCP connection that should be killed. |
| 308 | this.netClient.destroy(); |
| 309 | } |
| 310 | |
| 311 | this._metrics.onConnectionError(err); |
| 312 | |
| 313 | callback(err); |
| 314 | } |
| 315 | |
| 316 | /** |
| 317 | * Sets the connection to ready/connected status |
no test coverage detected