def AdjustFdLimit(new_soft_limit, new_hard_limit):
  import resource
  resource.setrlimit(resource.RLIMIT_NOFILE, (new_soft_limit, new_hard_limit))
Sets a new soft and hard limit for max number of fds.
dataset/ETHPy150Open chromium/web-page-replay/platformsettings.py/AdjustFdLimit