def set_limit(limit, force=False, reset_after=False, ignore_errors=False):
 limit = (limit or 0)
 glimit = (_limit[0] or 0)
 if (limit != glimit):
  _limit[0] = limit
  for pool in _all_pools():
   pool.resize(limit)
 return limit

def set_limit ( limit , force = False , reset_after = False , ignore_errors = False ) : limit = ( limit or 0 ) glimit = ( _limit [ 0 ] or 0 ) if ( limit != glimit ) : _limit [ 0 ] = limit for pool in _all_pools ( ) : pool . resize ( limit ) return limit
set new connection pool limit .