summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorShawn Routhier <sar@isc.org>2016-03-04 12:16:52 -0800
committerShawn Routhier <sar@isc.org>2016-03-04 12:16:52 -0800
commit0b209ea5cc333255e055113fa2ad636dda681a21 (patch)
tree7b0d001c0f190be903a5cd14679ed5b2e37f1339 /includes
parentcc1bd34e09bad3313a16d89f7ad491ff16754dc7 (diff)
downloadisc-dhcp-0b209ea5cc333255e055113fa2ad636dda681a21.tar.gz
[master] Add patch to limit the value of an fd we accept for a connection.
By limiting the highest value we accept for an fd we limit the number of connections.
Diffstat (limited to 'includes')
-rw-r--r--includes/site.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/site.h b/includes/site.h
index 944dbefc..1f4407f4 100644
--- a/includes/site.h
+++ b/includes/site.h
@@ -312,6 +312,12 @@
default. */
#define PRINT_SPECIFIC_CL_ERRORS
+/* Limit the value of a file descriptor the serve will use
+ when accepting a connecting request. This can be used to
+ limit the number of TCP connections that the server will
+ allow at one time. A value of 0 means there is no limit.*/
+#define MAX_FD_VALUE 200
+
/* Include definitions for various options. In general these
should be left as is, but if you have already defined one
of these and prefer your definition you can comment the