docs: function connectServer(options, cb) {
      var socket = new net.Socket();
      var start = process.hrtime();
  
      socket.connect(options.port, options.address, function() {
          var time_arr = process.hrtime(start);
          var time = (time_arr[0] * 1e9 + time_arr[1]) / 1e6;
          results.push({
              seq:  count,
              time: time
          });
          try { socket.destroy(); } catch(e) {}
          count++;
          checkConnection(options, cb);
      });
  
      socket.on('error', function(e) {
          results.push({
              seq:  count,
              time: undefined,
              err:  e
          });
          try { socket.destroy(); } catch(e) {}
          count++;
          checkConnection(options, cb);
      });
  
      socket.setTimeout(options.timeout, function() {
          results.push({
              seq:  count,
              time: undefined,
              err:  Error('Request timeout')
          });
          try { socket.destroy(); } catch(e) {}
          count++;
          checkConnection(options, cb);
      });
  }