This `if` block could also be written as:
```javascript
if (this.config.connectTimeout) {
  var handleConnectTimeout = this._handleConnectTimeout.bind(this);

  this._socket.setTimeout(this.config.connectTimeout);
  this._socket.once('timeout', handleConnectTimeout);
  this._socket.once('connect', function() {
    this.setTimeout(0);
    this.removeListener('timeout', handleConnectTimeout);
  });
}
```