From ed5c6311abf10d0ef7357bf9e6e9942c1fa181fa Mon Sep 17 00:00:00 2001 From: "adrian.chadd" Date: Thu, 16 Oct 2014 16:59:39 +0000 Subject: [PATCH] Remove the FD_SETSIZE check. This is a hold-over from using select() back in the past. It now uses libevent, so it no longer (itself) cares about the size of FD_SETSIZE. --- httperf/src/core.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/httperf/src/core.c b/httperf/src/core.c index 53fa4b5..fdc7f92 100755 --- a/httperf/src/core.c +++ b/httperf/src/core.c @@ -689,13 +689,6 @@ core_init(void) exit(1); } - if (rlimit.rlim_max > FD_SETSIZE) { - fprintf(stderr, "%s: warning: open file limit > FD_SETSIZE; " - "limiting max. # of open files to FD_SETSIZE\n", - prog_name); - rlimit.rlim_max = FD_SETSIZE; - } - rlimit.rlim_cur = rlimit.rlim_max; if (setrlimit(RLIMIT_NOFILE, &rlimit) < 0) { fprintf(stderr,