Evgeny Grin (Karlson2k)
54e83ba5ee
test_https_time_out: fixed test, now testing is real
2021-12-12 20:51:28 +03:00
Evgeny Grin (Karlson2k)
993fd001ab
test_https_time_out: fixed broken check
...
The old check "send () == 0" was always wrong. send() never returns zero.
As a result, the test checks nothing.
2021-12-12 20:39:09 +03:00
Evgeny Grin (Karlson2k)
dab616259e
Fixed b468b54f7c
2021-12-12 20:25:45 +03:00
Evgeny Grin (Karlson2k)
b468b54f7c
test_timeout: avoid busy-waiting
2021-12-12 20:05:11 +03:00
Evgeny Grin (Karlson2k)
8f803e184a
https tests: mute compiler warnings for old curl
2021-12-12 16:31:50 +03:00
Evgeny Grin (Karlson2k)
e0251c6d4f
test_get_chunked: follow HTTP specification
...
Use "Trailer: " header if trailers are used.
2021-12-12 16:10:29 +03:00
Evgeny Grin (Karlson2k)
a08cfbe742
Fixed tests compatibility with old libcurl
2021-12-12 16:10:28 +03:00
Evgeny Grin (Karlson2k)
69854dc435
mhd_send: fixed formatting style
2021-12-12 14:14:48 +03:00
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