Commit Graph
4170 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) f5bb3f5cf4 Fixed 'int' instead of 'MHD_Result' 2023-03-31 18:50:21 +02:00
Evgeny Grin (Karlson2k) c21c5769af daemon.c: fixed possible uninitialized value 2023-03-31 18:50:21 +02:00
Evgeny Grin (Karlson2k) a123f5d59c Fixed wrong variable type used for result of gnutls_priority_init() 2023-03-31 18:50:20 +02:00
Kolja Nowak e451f079d2 I'm trying to use libmicrohttpd on a platform where fcntl(fd, O_NONBLOCK)
doesn't work for sockets. This shouldn't be a problem, as far as I understand,
except in epoll mode, which I'm not using, because epoll() isn't available either.

However, there is a check in daemon.c:internal_add_connection(),
the purpose of which seems to be to prevent using a blocking socket
in epoll mode. At least that's what the debug message says. The code
however does the opposite, it prevents the use of a blocking socket
if epoll mode is *not* used. This was probably never noticed because
platforms without non-blocking sockets are rare.

Please consider applying the following simple fix:
2023-03-31 18:50:20 +02:00
Evgeny Grin (Karlson2k) e73d718963 internal.h: fixed incorrect use of enum value as preprocessor value 2023-03-31 18:50:20 +02:00
Evgeny Grin (Karlson2k) 42efdc09c4 Fixed return type for get_system_fdsetsize_value () 2023-03-31 18:50:19 +02:00
Evgeny Grin (Karlson2k) 2571d0df26 thread-per-connection: do not cache connection timeout
The timeout value could be updated by application
2023-03-31 18:50:19 +02:00
Evgeny Grin (Karlson2k) e53ff788f7 Response from callback: do allow negative return amounts, except predefined values 2023-03-31 18:50:18 +02:00
Evgeny Grin (Karlson2k) 1db2ded673 src/examples: fixed printf format specifiers 2023-03-31 18:50:18 +02:00
Evgeny Grin (Karlson2k) f795558de3 test_https_sni: use CA certificate
Still disabled in the test itself, but it should not hurt to give
the proper CA if it is available.
2023-03-31 18:50:18 +02:00
Evgeny Grin (Karlson2k) f941637d85 Updated test TLS certificate in test and examples
The new certificate should be a bit more similar to production certs.
2023-03-31 18:50:17 +02:00
Evgeny Grin (Karlson2k) ebcfcba9a0 Makefile: fixed *.crt files names for dist target 2023-03-31 18:50:17 +02:00
Evgeny Grin (Karlson2k) 41d7b18d05 test_https_sni: use certificates with SAN fields
While host in CommonName (CN) is still should be supported, it is
recommended to use SubjectAltName to identify the host.
This also workarounds the bug in libcurl 7.82.0 with certificates
processing.
2023-03-01 17:27:38 +03:00
Evgeny Grin (Karlson2k) f0a68628e9 MHD_get_version(): fixed signed value bit shift 2023-03-01 17:27:38 +03:00
Evgeny Grin (Karlson2k) 826070dbce Disallowed MHD_SIZE_UNKNOWN for buffer-based responses 2023-03-01 17:27:38 +03:00
Evgeny Grin (Karlson2k) d7bcb55994 memorypool: fixed: unpoison memory for ASAN before destroying pool 2023-03-01 17:27:37 +03:00
Christian Grothoff 3c83e86e30 fix capitalization of SHA-256 / MD5 as per RFC 7616 as reported on the mailinglist by Ahmet Kermen 2023-03-01 17:27:37 +03:00
Evgeny Grin (Karlson2k) 4bb2eac006 test_upgrade{,_large}: fixed use of uninitialized value 2023-03-01 17:27:37 +03:00
Evgeny Grin (Karlson2k) 0da40e2a2c Fixed compiler warning in examples 2023-03-01 17:27:36 +03:00
Evgeny Grin (Karlson2k) 94c4ff39f8 automake: use right automake options 2023-03-01 17:27:36 +03:00
Evgeny Grin (Karlson2k) 66f0318f39 configure: fixed unwanted output on Fedora 2023-03-01 17:27:36 +03:00
Evgeny Grin (Karlson2k) 487646cafb configure: clarified license message
Users tend to read "LGPLv2.1+ only" as "LGPLv2.1 only" because
"+" and "only" used together are confusing.
2023-03-01 17:27:35 +03:00
Evgeny Grin (Karlson2k) b6c9ca1c36 bump MHD_VERSION to indicate development version 2023-03-01 17:27:35 +03:00
Evgeny Grin (Karlson2k) 32311bfe06 Updated ChangeLog and NEWS for v0.9.76 2023-03-01 17:27:35 +03:00
Evgeny Grin (Karlson2k) 50ce5a6ba0 Bump LIB_VERSION_REVISION missing in 0.9.76 release 2023-03-01 10:48:20 +03:00
Christian Grothoff 4a51f653a2 hotfix release v0.9.76 2023-02-27 16:56:31 +01:00
Christian Grothoff e0754d1638 fix parser bug that could be used to crash servers using the MHD_PostProcessor 2023-02-27 16:55:28 +01:00
Evgeny Grin (Karlson2k) 940041ad78 Released GNU libmicrohttpd 0.9.75 v0.9.75 2021-12-26 20:35:58 +03:00
Evgeny Grin (Karlson2k) 1c381f499c ChangeLog updated 2021-12-26 20:02:23 +03:00
Evgeny Grin (Karlson2k) 3478d3bcac CI: use same CFLAGS for MinGW build as for other builds 2021-12-26 18:43:08 +03:00
Evgeny Grin (Karlson2k) cf42e7fd4c test_large_put: compatibility with old libcurl
Compatibility was broken by 5ce0c23e37
2021-12-26 18:25:45 +03:00
Evgeny Grin (Karlson2k) b800cc1ec2 contrib/autotools-patches/apply-all.sh: implemented correct return value 2021-12-26 17:42:32 +03:00
Evgeny Grin (Karlson2k) 78784ce6db test_large_put: increased timeout
Incremental test may took longer than 5 seconds.
2021-12-26 17:38:19 +03:00
Evgeny Grin (Karlson2k) 38dcc34b9c test_large_put: added request timeout detection 2021-12-26 17:36:27 +03:00
Evgeny Grin (Karlson2k) 5ce0c23e37 test_large_put: added more checking for return values 2021-12-26 16:46:03 +03:00
Evgeny Grin (Karlson2k) 73c43a7ef7 Added workaround for system clock jumps back
Same OSes (namely OpenBSD) has system clocks that must be monotonic,
but in practice clocks may jump forward and back up to 500 milliseconds.
2021-12-26 12:41:49 +03:00
Evgeny Grin (Karlson2k) 0dd7f1732a mhd_mono_clock: fixed comment 2021-12-26 12:41:49 +03:00
Evgeny Grin (Karlson2k) 430d7251fa Reduced maximum possible connection timeout
The maximum timeout value is still too large to be used (more than
hundred thousand years).
2021-12-26 12:41:48 +03:00
Evgeny Grin (Karlson2k) 005d1f25b2 test_client_put_stop: ensure that some data will be received by MHD before closing
Simplified and unified code, improved readability.
2021-12-26 12:41:48 +03:00
Evgeny Grin (Karlson2k) 8140b9e737 test_client_put_stop: added detection of unexpected connection shut down 2021-12-26 12:41:47 +03:00
Evgeny Grin (Karlson2k) 1497b774c7 connection: mute compiler warning for some platforms 2021-12-25 15:26:26 +03:00
Evgeny Grin (Karlson2k) 826b4a7a81 MSVC: exclude unneeded file from builds 2021-12-24 21:25:10 +03:00
Evgeny Grin (Karlson2k) cd5a53a9c4 MSVC projects: fixed one file placement 2021-12-24 19:32:22 +03:00
Evgeny Grin (Karlson2k) 9763d2fa61 configure: fixed portability 2021-12-24 09:44:31 +03:00
Evgeny Grin (Karlson2k) 747a2151bf configure: fixed compiler warning on MSys2/MinGW64 package build 2021-12-20 21:00:00 +03:00
Evgeny Grin (Karlson2k) 6f04fde5e6 Makefile: removed duplicated recipe for W32 2021-12-20 19:27:27 +03:00
Evgeny Grin (Karlson2k) 2f44f1ec65 Bump MHD_VERSION to indicate development build 2021-12-20 19:25:17 +03:00
Evgeny Grin (Karlson2k) a4ae51f581 Released GNU libmicrohttpd 0.9.74 v0.9.74 2021-12-19 18:36:21 +03:00
Evgeny Grin (Karlson2k) fb25f5f301 apply-all.sh: simplified usage 2021-12-19 18:07:20 +03:00
Evgeny Grin (Karlson2k) 969e64040f Updated HTTP headers macros from registry 2021-12-19 15:44:54 +03:00