Commit Graph
4096 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) b4f1e487de Fixed compatibility with old GnuTLS versions 2021-12-12 13:35:12 +03:00
Evgeny Grin (Karlson2k) 9496be9271 postprocessor.c: cosmetics 2021-12-12 13:34:03 +03:00
Evgeny Grin (Karlson2k) 19e8d32303 configure: really disable leak sanitizer if it's disabled by configure parameters 2021-12-11 14:20:14 +03:00
Evgeny Grin (Karlson2k) c8e2acd488 configure: added selective sanitizers enable 2021-12-11 13:53:11 +03:00
Evgeny Grin (Karlson2k) 6fc74f24da configure: improved compatibility with shells 2021-12-10 18:58:42 +03:00
Evgeny Grin (Karlson2k) 32a10057ec Workarounds for uncrustify bugs 2021-12-09 13:51:49 +03:00
Evgeny Grin (Karlson2k) 8d50b03251 Revert formatting broken by uncrustify
This partially reverts commit dbe1d76d9c.

Looks like uncrustify has some bug resulting in C++ style comments
2021-12-09 13:33:50 +03:00
Evgeny Grin (Karlson2k) cd58a0e166 test_get_response_cleanup: removed unused macro 2021-12-09 13:28:36 +03:00
Christian Grothoff dbe1d76d9c -fix tests for libmagic (and uncrustify indentation) 2021-12-08 14:11:31 +01:00
Evgeny Grin (Karlson2k) 43938f8d41 test_client_put_stop: check 'net.inet.tcp.blackhole' value 2021-12-06 21:39:00 +03:00
Evgeny Grin (Karlson2k) 1a7fb032ba test_client_put_stop: support rate limiting of RST
RST rate limiting is required for FreeBSD.
2021-12-06 21:38:59 +03:00
Evgeny Grin (Karlson2k) 9f0d5f6eb1 configure: fixed compiler warning when checking 2021-12-06 21:38:58 +03:00
Evgeny Grin (Karlson2k) c153aef675 test_iplimit: fixed MHD parameter format 2021-12-05 20:23:49 +03:00
Evgeny Grin (Karlson2k) 8cdc89b9c3 new_connection_process_(): fixed handling of errors
Function fully restructured for clear handling of failed paths.
Fixed notification of connection termination without matching
notification of start of the connection (if reached daemon's
connections limit).
Fixed possible (but virtually unreachable) reset of the list of
connections if reached daemon's connections limit.
Fixed missed decrement of number of connections in case of any handled
failure.
2021-12-05 20:21:46 +03:00
Evgeny Grin (Karlson2k) 4e9c66466d Added special log message to report exceeded system limit on number of threads 2021-12-05 12:05:06 +03:00
Evgeny Grin (Karlson2k) 46a07b6404 mhd_threads.c: cosmetics 2021-12-05 12:01:31 +03:00
Evgeny Grin (Karlson2k) c267a1141a configure: fixed missing quoting 2021-12-04 18:14:43 +03:00
Evgeny Grin (Karlson2k) 055979f854 test_client_put_stop: use correct 'sleep' amount on W32 2021-12-04 17:59:12 +03:00
Evgeny Grin (Karlson2k) 9474ec08ff Added _MHD_HEAVY_TESTS to MHD_config.h 2021-12-04 17:59:11 +03:00
Evgeny Grin (Karlson2k) 4f1e02a99e Fixed doxy for MHD_suspend_connection() 2021-12-03 14:00:17 +03:00
Evgeny Grin (Karlson2k) 440809f76a test_client_put_stop: abort test if it is taking too long 2021-12-02 10:14:02 +03:00
Evgeny Grin (Karlson2k) dca52bf16a test_client_put_stop: don't use fd_sets if select() fails 2021-12-01 15:05:57 +03:00
Evgeny Grin (Karlson2k) 280fb849e0 Minor readability improvements 2021-12-01 15:05:56 +03:00
Evgeny Grin (Karlson2k) 3f63454148 mhd_sockets: reordered includes for better compatibility 2021-12-01 15:05:56 +03:00
Evgeny Grin (Karlson2k) 969cbdf6a6 Added missing ifdef guard for <stdbool.h> 2021-12-01 15:05:56 +03:00
Evgeny Grin (Karlson2k) a8423ab884 configure: do header detection before other checks 2021-12-01 15:04:08 +03:00
Evgeny Grin (Karlson2k) e87044f7a3 configure: header detection fixes
Reordered headers detection to allow detect headers which require
inclusion of other headers before them.

Fixed detection of network/socket headers as on some platforms they
require specific headers to be included before.
2021-12-01 15:01:52 +03:00
Evgeny Grin (Karlson2k) 06476807a2 test_client_put_stop: cosmetics 2021-11-29 21:30:34 +03:00
Evgeny Grin (Karlson2k) c6ba7ba254 test_client_put_stop: limit total test time 2021-11-29 14:17:02 +03:00
Evgeny Grin (Karlson2k) 3fddf35bb7 test_client_put_stop: improved readability of the test results 2021-11-29 14:16:05 +03:00
Evgeny Grin (Karlson2k) e910727df7 Partial revert of 8f9567bb48
Use unified timeouts
2021-11-29 13:33:41 +03:00
Evgeny Grin (Karlson2k) 8f9567bb48 test_client_put_stop: Use longer timeout periods for select() 2021-11-28 20:54:46 +03:00
Evgeny Grin (Karlson2k) ff12c57202 test_client_put_stop: suppress SIGPIPE on the client side 2021-11-28 19:44:26 +03:00
Evgeny Grin (Karlson2k) dbf407c26a Fixed MHD_FEATURE_AUTOSUPPRESS_SIGPIPE return value 2021-11-28 19:38:18 +03:00
Evgeny Grin (Karlson2k) 679f259b95 If socket error is detected, try to detect the type of error before closing 2021-11-28 19:20:40 +03:00
Evgeny Grin (Karlson2k) 13cc9afe06 Cosmetics: removed duplicated value 2021-11-28 13:58:18 +03:00
Evgeny Grin (Karlson2k) 5c478c5d61 test_client_put_stop: check for right reason
The termination reason must correspond to type of client socket closure.
2021-11-28 13:21:53 +03:00
Evgeny Grin (Karlson2k) cca1730f8b memorypool: minor doxy clarification 2021-11-25 12:28:52 +03:00
Evgeny Grin (Karlson2k) 5f6ccd331f test_client_put_stop: handle correctly close phase on the client side 2021-11-25 11:44:04 +03:00
Evgeny Grin (Karlson2k) f8c46afbd0 test_client_put_stop: removed unused assignment 2021-11-24 22:29:41 +03:00
Evgeny Grin (Karlson2k) 2e3418c734 test_client_put_stop: fixed asserts 2021-11-24 22:25:32 +03:00
Evgeny Grin (Karlson2k) 8b0105d0d9 test_client_put_stop: removed libcurl leftover 2021-11-24 22:17:53 +03:00
Evgeny Grin (Karlson2k) 385b4df1b9 parse_connection_headers(): report if client payload is too large.
Request payload with sizes larger than 16 EiB (exabytes) are technically
valid, but cannot be processed by MHD. Now they are rejected
with 413 HTTP code.
2021-11-24 21:55:57 +03:00
Evgeny Grin (Karlson2k) 06251c9017 Fixed builds without messages 2021-11-24 21:55:57 +03:00
Evgeny Grin (Karlson2k) e9e6a5f9d6 parse_connection_headers(): simplified 'Content-Length' processing 2021-11-24 21:55:56 +03:00
Evgeny Grin (Karlson2k) a6e53c3676 process_request_body(): rewritten chunk size detection; fixes
* CRCR, LFCR, LFLF, and bare CR are not recognized anymore as single
  line delimiters.
* When only part of chunks size line is available, it is checked for
  validity to abort early on misformed requests.
* Chunks with sizes larger than 16 EiB (exabytes) are technically valid,
  but cannot be processed by MHD. Now they are rejected with 413 code.
2021-11-24 21:55:56 +03:00
Evgeny Grin (Karlson2k) 482ca8e164 process_request_body(): fixed: do allow sizes with more than 16 digits
As per RFC, '000000000000000000000000000000000000001' is a valid size
2021-11-24 19:09:31 +03:00
Evgeny Grin (Karlson2k) 27cd374594 process_request_body(): fixed one byte buffer overrun 2021-11-24 19:09:31 +03:00
Evgeny Grin (Karlson2k) ad9fc5c65a process_request_body(): added assert 2021-11-24 19:09:31 +03:00
Evgeny Grin (Karlson2k) f8ed20822b process_request_body(): fixed: removed wrong special handling of the termination chunk 2021-11-24 19:09:30 +03:00