lib/connection.js
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);
  }
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);
  }
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 ) ; }
Handle socket timeout.

@private
Handle socket timeout .