def _get_max_fd(self):
limits = resource.getrlimit(resource.RLIMIT_NOFILE)<EOL>result = limits[<NUM_LIT:1>]<EOL>if result == resource.RLIM_INFINITY:<EOL><INDENT>result = maxfd<EOL><DEDENT>return result<EOL>
Return the maximum file descriptor value.