summaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index b8dfc426..76e64e96 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -84,7 +84,7 @@ extern "C"
/**
* Current version of the library.
*/
-#define MHD_VERSION 0x00000200
+#define MHD_VERSION 0x00000201
/**
* MHD-internal return codes.
@@ -333,6 +333,18 @@ enum MHD_OPTION
*/
MHD_OPTION_NOTIFY_COMPLETED = 4,
+ /**
+ * Limit on the number of (concurrent) connections made to the
+ * server from the same IP address. Can be used to prevent one
+ * IP from taking over all of the allowed connections. If the
+ * same IP tries to establish more than the specified number of
+ * connections, they will be immediately rejected. The option
+ * should be followed by an "unsigned int". The default is
+ * zero, which means no limit on the number of connections
+ * from the same IP address.
+ */
+ MHD_OPTION_PER_IP_CONNECTION_LIMIT = 5,
+
};
/**