code: function() {
      const err = Errors.createError(
        'socket timeout',
        true,
        info,
        '08S01',
        Errors.ER_SOCKET_TIMEOUT
      );
      const packetMsgs = info.getLastPackets();
      if (packetMsgs !== '') {
        err.message = err.message + '\nlast received packets:\n' + packetMsgs;
      }
      _fatalError(err, true);
    }
docs: Handle socket timeout.
  
  @private