Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

smtp-connection

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smtp-connection - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

4

CHANGELOG.md
# Changelog
## v3.1.0 2016-12-21
* use setKeepAlive(true) on newly created sockets
## v3.0.1 2016-12-09

@@ -4,0 +8,0 @@

15

lib/smtp-connection.js

@@ -220,3 +220,6 @@ 'use strict';

try {
this._socket.connect(this.port, this.host, () => this._onConnect());
this._socket.connect(this.port, this.host, () => {
this._socket.setKeepAlive(true);
this._onConnect();
});
} catch (E) {

@@ -233,3 +236,6 @@ return setImmediate(() => this._onError(E, 'ECONNECTION', false, 'CONN'));

try {
this._socket = tls.connect(this.port, this.host, opts, () => this._onConnect());
this._socket = tls.connect(this.port, this.host, opts, () => {
this._socket.setKeepAlive(true);
this._onConnect();
});
} catch (E) {

@@ -241,3 +247,6 @@ return setImmediate(() => this._onError(E, 'ECONNECTION', false, 'CONN'));

try {
this._socket = net.connect(opts, () => this._onConnect());
this._socket = net.connect(opts, () => {
this._socket.setKeepAlive(true);
this._onConnect();
});
} catch (E) {

@@ -244,0 +253,0 @@ return setImmediate(() => this._onError(E, 'ECONNECTION', false, 'CONN'));

{
"name": "smtp-connection",
"version": "3.0.1",
"version": "3.1.0",
"description": "Connect to SMTP servers",

@@ -35,3 +35,3 @@ "main": "lib/smtp-connection.js",

"sinon": "^1.17.6",
"smtp-server": "^1.16.1",
"smtp-server": "^1.17.0",
"xoauth2": "^1.2.0"

@@ -38,0 +38,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc