diff --git a/lib/Connection.js b/lib/Connection.js index 3efcadc..c6c4149 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -1697,7 +1697,8 @@ Connection.prototype._starttls = function() { self._sock.on('error', self._onError); self._sock.on('timeout', this._onSocketTimeout); - self._sock.setTimeout(config.socketTimeout); + self._sock.setTimeout(self._config.socketTimeout); + self._parser.setStream(self._sock); });