diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2015-12-08 20:48:44 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2015-12-08 20:48:44 +0000 |
commit | 9403196ad0b67b13d4fefdc4d3da6625d66be34e (patch) | |
tree | 0d0cfa403381538943edb1065d6dca550f2e9dfe /src/include | |
parent | 8ace389d37855f16c9bef7afd70304b8d5c7da4e (diff) | |
download | libmicrohttpd-9403196ad0b67b13d4fefdc4d3da6625d66be34e.tar.gz libmicrohttpd-9403196ad0b67b13d4fefdc4d3da6625d66be34e.zip |
Change default listen backlog size from 32 to SOMAXCONN, allow to specify required listen backlog size
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/microhttpd.h | 11 |
1 files changed, 9 insertions, 2 deletions
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; | |||
130 | * Current version of the library. | 130 | * Current version of the library. |
131 | * 0x01093001 = 1.9.30-1. | 131 | * 0x01093001 = 1.9.30-1. |
132 | */ | 132 | */ |
133 | #define MHD_VERSION 0x00094701 | 133 | #define MHD_VERSION 0x00094703 |
134 | 134 | ||
135 | /** | 135 | /** |
136 | * MHD-internal return code for "YES". | 136 | * MHD-internal return code for "YES". |
@@ -967,8 +967,15 @@ enum MHD_OPTION | |||
967 | * pointer to a closure to pass to the request completed callback. | 967 | * pointer to a closure to pass to the request completed callback. |
968 | * The second pointer maybe NULL. | 968 | * The second pointer maybe NULL. |
969 | */ | 969 | */ |
970 | MHD_OPTION_NOTIFY_CONNECTION = 27 | 970 | MHD_OPTION_NOTIFY_CONNECTION = 27, |
971 | 971 | ||
972 | /** | ||
973 | * Allow to change maximum length of the queue of pending connections on | ||
974 | * listen socket. If not present than default platform-specific SOMAXCONN | ||
975 | * value is used. This option should be followed by an `unsigned int` | ||
976 | * argument. | ||
977 | */ | ||
978 | MHD_OPTION_LISTEN_BACKLOG_SIZE = 28 | ||
972 | }; | 979 | }; |
973 | 980 | ||
974 | 981 | ||