Commit Graph
862 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 8d4496944b configure: implemented setting DAuth defaults by parameters 2023-12-29 16:58:16 +03:00
Evgeny Grin (Karlson2k) ce1ea19549 Added daemon options for default nonce timeout and max nc values 2023-12-28 13:30:47 +03:00
Evgeny Grin (Karlson2k) ff63d75797 digest auth: added default timeout and max nc values 2023-12-28 12:51:07 +03:00
Evgeny Grin (Karlson2k) 448901b4d5 microhttpd.h: minor doxy improvement 2023-12-28 10:30:17 +03:00
Evgeny Grin (Karlson2k) a19df909da Officially support zero for MHD_OPTION_THREAD_POOL_SIZE 2023-11-23 13:47:00 +03:00
Evgeny Grin (Karlson2k) b05555f837 Added new daemon flag MHD_USE_NO_THREAD_SAFETY
Do not assume anymore single-threaded environment if external polling
is used.
The application is free to use multiple threads if MHD in the external
polling mode.
The new flag could be used to disable some thread-safety in MHD to
improve single-thread processing speed and resources usage. Basically
the new flag restores the old behaviour for external polling mode.
2023-11-21 17:37:15 +03:00
Evgeny Grin (Karlson2k) f5a72d27f3 Implemented new option MHD_OPTION_SOCK_ADDR_LEN
Improved detection of TCP/IP port in application-provided sockaddr.
Added automatic detection of used address facility (sockets type).
Improved support of platforms with sa_len, ss_len, sin_len and sin6_len.
2023-11-16 09:08:40 +03:00
Evgeny Grin (Karlson2k) f73ab43831 microhttpd.h: minor clarification for doxy 2023-11-15 15:28:38 +03:00
Evgeny Grin (Karlson2k) 75dbfbc716 Implemented and documented MHD_OPTION_LISTEN_SOCKET followed by MHD_INVALID_SOCKET 2023-11-12 11:50:30 +03:00
Evgeny Grin (Karlson2k) 32eae456fd Added new function MHD_run_from_select2() with FD_SETSIZE value
Added wrapper macro MHD_run_from_select() to automatically use current
FD_SETSIZE value.
This should complete the support for flexible FD_SETSIZE (which is used
on most platforms with GNU/Linux as notable exception).
This also fixes potential fd_set overrun when sockets with too large
numbers are used.
2023-11-08 20:15:01 +03:00
Evgeny Grin (Karlson2k) 89c1076aac Added MHD_OPTION_APP_FD_SETSIZE and MHD_FEATURE_FLEXIBLE_FD_SETSIZE
This should provide better compatibility with platforms with ability
to override FD_SETSIZE.
The new option is used examples and tests.
2023-11-07 20:49:10 +03:00
Evgeny Grin (Karlson2k) 5d195d9289 microhttpd.h: updated doxy for MHD_USE_PEDANTIC_CHECKS 2023-11-01 13:46:44 +03:00
Evgeny Grin (Karlson2k) 6336d8c796 digest auth: updated header, slightly modified multi-value processing 2023-10-06 17:59:16 +03:00
Evgeny Grin (Karlson2k) ce38b0fa79 Renamed one new basic auth function, improved doxy 2023-10-06 14:12:31 +03:00
Evgeny Grin (Karlson2k) e25a7fa283 Updated HTTP methods, headers and reason phrases
Added HTTP methods sorting
2023-10-02 18:10:11 +03:00
Evgeny Grin (Karlson2k) 93bc2751bf Improved compatibility with old compilers 2023-09-27 20:02:00 +03:00
Evgeny Grin (Karlson2k) 7a638aed1b microhttpd.h: fixed deprecation messages 2023-09-26 16:01:21 +03:00
Christian Grothoff 9c032ccca7 Revert "-add support for ICECAST-style uploads"
This reverts commit 19e1ed8355.
2023-09-26 11:58:44 +02:00
Christian Grothoff 19e1ed8355 -add support for ICECAST-style uploads 2023-09-25 20:32:53 +02:00
Evgeny Grin (Karlson2k) 8962cba42d Improved doxy for #MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE info 2023-09-19 15:32:49 +03:00
Evgeny Grin (Karlson2k) 49942a4a3f W32 VS: really muted run-time warnings about data truncation 2023-09-13 17:10:44 +03:00
Evgeny Grin (Karlson2k) c19c0438ab Allowed responses in special cases for backward-compatibility.
Allowed responses for suspended connection any time
Allowed responses for "external polling" mode any time.
Marked this behaviour as deprecated.
2023-09-07 17:41:23 +03:00
Evgeny Grin (Karlson2k) e87d26c429 Implemented proper detection of number of available CPU cores 2023-07-29 23:38:13 +03:00
Evgeny Grin (Karlson2k) c1b6751c11 Added checks for correct values specified for connection memory limits 2023-06-20 23:22:56 +03:00
Evgeny Grin (Karlson2k) b483c0f6d3 microhttpd.h: fixed typos in comments 2023-06-20 22:59:06 +03:00
Evgeny Grin (Karlson2k) ddfa808bb4 Bump version numbers as v0.9.77 was released on parallel branch 2023-06-06 22:56:36 +03:00
Evgeny Grin (Karlson2k) 4d5f24f7df autoinit_funcs.h: fixed warning on MSVC 2023-06-01 13:28:26 +03:00
Evgeny Grin (Karlson2k) 612d20b28d Added internal preprocessor macro for magic macro presence 2023-06-01 11:28:22 +03:00
Evgeny Grin (Karlson2k) 4973c6cff0 Simplified usage of the function name magic macros 2023-06-01 11:09:16 +03:00
Evgeny Grin (Karlson2k) 06001f4ee1 autoinit_funcs.h: fixed compiler warning 2023-06-01 09:15:35 +03:00
Evgeny Grin (Karlson2k) df2c6113ed autoinit_funcs.h: added more macros checks for platform identification 2023-05-02 11:45:40 +03:00
Evgeny Grin (Karlson2k) f924cbde38 autoinit_funcs.h: unified English spelling (prefer GB over US) 2023-04-27 20:27:02 +03:00
Evgeny Grin (Karlson2k) b92f7d9700 autoinit_funcs.h: updated to use (semi-)official documented sections 2023-04-27 20:24:09 +03:00
Evgeny Grin (Karlson2k) 81ef7ab0c1 autoinit_funcs.h: added support for non-x86 arches for MSVC 2023-04-26 17:05:16 +03:00
Evgeny Grin (Karlson2k) 06ff71656b autoinit_funcs.h: fixed harmless typos 2023-04-26 11:21:43 +03:00
Evgeny Grin (Karlson2k) 27ecf2e102 microhttpd.h: fixed typo in doxy 2023-03-30 18:08:51 +02:00
Evgeny Grin (Karlson2k) ec981dfe4e Bumped version as it should be later then the hotfix release 2023-03-29 21:13:32 +02:00
Evgeny Grin (Karlson2k) 5c3a61d68c Added new daemon option MHD_OPTION_CLIENT_DISCIPLINE_LV
Reject URIs with spaces as per RFC.
Fixed check for space before colon in headers (previously it was checked
only when MHD was NOT strict).
Reject HTTP/1.1 requests without host by default (as per RFC).
2022-12-22 18:25:49 +03:00
Evgeny Grin (Karlson2k) 2a71dbd38f MHD_get_version_bin(): added new function 2022-12-19 18:13:44 +03:00
Evgeny Grin (Karlson2k) 3444792f14 Refactored user-poison: minimized scope of non-sanitized code 2022-11-26 20:02:17 +03:00
Evgeny Grin (Karlson2k) 8d6d9be08d Fixed macro name spelling 2022-11-06 15:01:18 +03:00
Evgeny Grin (Karlson2k) 9f4a08a8d5 microhttpd.h: doxy improvements 2022-10-28 12:13:08 +03:00
Evgeny Grin (Karlson2k) 30beb61e11 Added ability to check for MHD debug builds at run-time 2022-10-14 11:25:29 +03:00
Evgeny Grin (Karlson2k) 0b9776811f Added new MHD option to append TLS priorities string
The string is appended to default GnuTLS priorities. This way
application may control priorities details, while leaving the basic
settings to system's defaults.
2022-10-13 09:07:02 +03:00
Evgeny Grin (Karlson2k) 6e95c305e4 TLS: use application-specific system-wide configuration with fallbacks
Implemented more flexible GnuTLS priorities string initialisation. Now
MHD tries to use "@LIBMICROHTTPD" configuration at first, so all
MHD instances on particular system can be configured by specifying the
string like "LIBMICROHTTPD = ..." in GnuTLS system-wide configuration.
For example "LIBMICROHTTPD = NORMAL:-VERS-TLS1.0:-VERS-TLS1.1" could be
used to disable TLS v1.0 and TLS v1.1 for all MHD instances.
If application-specific configuration is not available, then default
"@SYSTEM" run-time configuration is used.
If "@SYSTEM" is not defined, then GnuTLS build-time default string
is used.
Standard "NORMAL" configuration is used if everything else fails.
2022-10-13 09:07:02 +03:00
Evgeny Grin (Karlson2k) b6979795cd microhttpd.h: minor doxy fix 2022-10-10 11:54:33 +03:00
Evgeny Grin (Karlson2k) 9f22ba9b0b microhttpd.h: improved doxy for MHD_USE_THREAD_PER_CONNECTION 2022-10-10 11:54:30 +03:00
Evgeny Grin (Karlson2k) 4adc14c948 Some readability improvements 2022-09-28 11:46:59 +03:00
Evgeny Grin (Karlson2k) 172b0eeb45 Implemented support for hash calculation by GnuTLS lib functions 2022-09-25 18:40:50 +03:00
Evgeny Grin (Karlson2k) 403f3b8e6a mhd_options: use standard _MHD_EXTERN if file used outside the library 2022-09-25 18:39:40 +03:00