From 9403196ad0b67b13d4fefdc4d3da6625d66be34e Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Tue, 8 Dec 2015 20:48:44 +0000 Subject: Change default listen backlog size from 32 to SOMAXCONN, allow to specify required listen backlog size --- src/include/microhttpd.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 05b86b74..50c7b3af 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h @@ -130,7 +130,7 @@ typedef intptr_t ssize_t; * Current version of the library. * 0x01093001 = 1.9.30-1. */ -#define MHD_VERSION 0x00094701 +#define MHD_VERSION 0x00094703 /** * MHD-internal return code for "YES". @@ -967,8 +967,15 @@ enum MHD_OPTION * pointer to a closure to pass to the request completed callback. * The second pointer maybe NULL. */ - MHD_OPTION_NOTIFY_CONNECTION = 27 + MHD_OPTION_NOTIFY_CONNECTION = 27, + /** + * Allow to change maximum length of the queue of pending connections on + * listen socket. If not present than default platform-specific SOMAXCONN + * value is used. This option should be followed by an `unsigned int` + * argument. + */ + MHD_OPTION_LISTEN_BACKLOG_SIZE = 28 }; -- cgit v1.2.3