lib/validator.js
function clientOutputBufferLimit(val) {
  if(Array.isArray(val)) {
    val.forEach(function(limit) {
      var type = limit[0]
        , seconds = limit[3];
      if(!~Constants.CLIENT_CLASS.indexOf(type)) {
        throw new Error('Unrecognized client limit class');
      }
      if(seconds < 0) {
        throw new Error(
          'Negative number of seconds in soft limit is invalid');
      }
    })
  }
}
function clientOutputBufferLimit(val) {
  if(Array.isArray(val)) {
    val.forEach(function(limit) {
      var type = limit[0]
        , seconds = limit[3];
      if(!~Constants.CLIENT_CLASS.indexOf(type)) {
        throw new Error('Unrecognized client limit class');
      }
      if(seconds < 0) {
        throw new Error(
          'Negative number of seconds in soft limit is invalid');
      }
    })
  }
}
function clientOutputBufferLimit ( val ) { if ( Array . isArray ( val ) ) { val . forEach ( function ( limit ) { var type = limit [ 0 ] , seconds = limit [ 3 ] ; if ( ! ~ Constants . CLIENT_CLASS . indexOf ( type ) ) { throw new Error ( 'Unrecognized client limit class' ) ; } if ( seconds < 0 ) { throw new Error ( 'Negative number of seconds in soft limit is invalid' ) ; } } ) } }
Validate a client-output-buffer-limit value.
Validate a client - output - buffer - limit value .