Christian Grothoff
2212a37256
check rvalues from pthread_mutex_ operations in examples
2023-09-25 21:26:31 +02:00
Christian Grothoff
e42c783bb8
-very theoretically, 0 would be OK, too
2023-09-25 21:13:17 +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)
7ae4bcccec
Fixed MHD_CONNECTION_INFO_DAEMON: return master daemon
...
Previously a worker daemon could be returned for thread pool
configuration. The worker daemon should not be used directly by
application, it is for internal use only.
2023-09-19 15:32:48 +03:00
Evgeny Grin (Karlson2k)
31dd1b054f
get_request_line_inner(): added RFC references
2023-09-19 15:32:37 +03:00
Evgeny Grin (Karlson2k)
977814e18a
Refactored threads support
...
Some platforms do not have any "invalid" value of thread handle/ID.
Added tracking of the thread initialisation on such platforms to
avoid accidental match with uninitialised value.
2023-09-17 19:57:56 +03:00
Evgeny Grin (Karlson2k)
580814314f
test_shutdown_select: muted compiler warninig
2023-09-17 11:07:41 +03:00
Evgeny Grin (Karlson2k)
76bb5944a5
test_put_header_fold: fixed code style
2023-09-17 11:07:41 +03:00
Evgeny Grin (Karlson2k)
c209ce76f7
Fixed missing <errno.h> includes
...
While 'errno' can be defined in various headers, by standard it must
be defined in <errno.h> header.
2023-09-17 11:07:40 +03:00
Evgeny Grin (Karlson2k)
e52c9e2468
examples/sessions.c: fixed compiler warnings
2023-09-15 09:30:43 +03:00
Evgeny Grin (Karlson2k)
17b59778ea
examples/sessions.c: fixed wrong check for error
2023-09-15 09:29:20 +03:00
Evgeny Grin (Karlson2k)
c101b159ea
Fixed debug build without TLS support
2023-09-13 17:11:51 +03:00
Evgeny Grin (Karlson2k)
bb80be696b
daemon: unified check for debug macros
2023-09-13 17:11:28 +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)
a4b7990e5b
W32 VS project: corrected compiler settings
...
VS detects value truncation at run-time even if explicit cast is used.
This breaks legitimate code execution.
Unfortunately there is no way to disable it only for explicit casts
so disabling this feature completely.
Also disabled some warnings which are not real warnings, but
informational messages.
2023-09-12 15:31:03 +03:00
Evgeny Grin (Karlson2k)
7272f8b0bd
Muted and fixed some compiler warnings
2023-09-12 15:27:10 +03:00
Evgeny Grin (Karlson2k)
fdc7a08c4f
mhd_str: removed some over-casting
2023-09-12 11:54:10 +03:00
Evgeny Grin (Karlson2k)
97707d77b7
mhd_str: fixed possible compiler and run-time sanitizers warnings
2023-09-11 19:50:20 +03:00
Evgeny Grin (Karlson2k)
35cfb56e7d
mhd_threads: added new macro MHD_join_thread_tid_()
2023-09-08 12:04:09 +03:00
Evgeny Grin (Karlson2k)
a9bc3198c8
Renamed 'pid' -> 'tid' when used for threads
2023-09-08 12:03:33 +03:00
Evgeny Grin (Karlson2k)
e55b0418ec
mhd_threads: renamed one macro for clarity
2023-09-08 11:10:51 +03:00
Evgeny Grin (Karlson2k)
3b0a9d19d1
mhd_threads: fixed check for error when starting a new thread on W32
2023-09-07 21:09:04 +03:00
Evgeny Grin (Karlson2k)
e71a6a5dff
mhd_threads: muted compiler warning on W32
2023-09-07 21:08:19 +03:00
Evgeny Grin (Karlson2k)
dfbc4da6df
Simplified deinit on W32.
2023-09-07 17:53:38 +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)
194b1222c6
perf_replies: disabled limit for maximum number of automatic threads
2023-09-06 17:44:53 +03:00
Evgeny Grin (Karlson2k)
4453fd2009
mhd_tool_get_cpu_count: fixed code style
2023-09-06 17:41:07 +03:00
Evgeny Grin (Karlson2k)
bf99fa820c
perf_replies: minor improvement for W32 code
2023-09-06 17:22:51 +03:00
Evgeny Grin (Karlson2k)
cd16ca4d35
Implemented detection of number of CPUs available for the process on W32
2023-09-06 17:22:03 +03:00
Evgeny Grin (Karlson2k)
2ba3d8da0b
W32 projects: added .editorconfig
2023-09-04 16:50:05 +03:00
Christian Grothoff
602ad55136
Revert "fixing #7772 exactly as suggested by reporter"
...
This reverts commit fabafbaaaf as the issue
was already fixed previously in a different way.
2023-09-03 19:38:21 +02:00
Christian Grothoff
c690b40eb0
proper fix for #7757
2023-09-03 12:05:17 +02:00
Evgeny Grin (Karlson2k)
efc136b4ef
W32 projects: added perf_replies project
2023-09-03 11:02:21 +03:00
Evgeny Grin (Karlson2k)
be7560aee7
mhd_tool_str_to_uint.h: cosmetic fix
2023-09-03 11:02:20 +03:00
Evgeny Grin (Karlson2k)
d72b9c11dc
W32 projects: minor fixes
2023-09-03 11:02:08 +03:00
Christian Grothoff
fabafbaaaf
fixing #7772 exactly as suggested by reporter
2023-09-03 00:49:49 +02:00
Christian Grothoff
438c3ee2d6
fix #7928 : correct tutorial direntry
2023-09-03 00:29:41 +02:00
Christian Grothoff
eb21a977d2
fix #7757
2023-09-03 00:24:16 +02:00
Evgeny Grin (Karlson2k)
8586d91913
Improved detection of number of available CPU cores
2023-08-15 11:50:06 +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)
8a6307e08c
perf_replies: updated license text
2023-07-29 23:38:11 +03:00
Evgeny Grin (Karlson2k)
15f602c2eb
mhd_tool_str_to_uint.h: fixed doxy
2023-07-29 23:37:03 +03:00
Christian Grothoff
d011008332
-typos
2023-07-10 19:47:02 +02:00
Evgeny Grin (Karlson2k)
d3519acbbe
perf_replies: moved one function to separate header
2023-07-10 13:40:10 +03:00
Evgeny Grin (Karlson2k)
f586f2e7c1
perf_replies: added options for response sharing types
2023-07-10 08:32:15 +03:00
Evgeny Grin (Karlson2k)
36f1c42d5f
perf_replies: added 'thread-per-connection' mode
2023-07-09 18:38:54 +03:00
Evgeny Grin (Karlson2k)
e5103067f6
perf_replies: added short aliases for polling function modes
2023-07-09 17:58:53 +03:00
Evgeny Grin (Karlson2k)
72d1acb323
perf_replies: added various response sizes, minor fixes
2023-07-04 23:01:48 +03:00
Evgeny Grin (Karlson2k)
54b2a78b36
perf_replies: added more features
2023-07-04 15:32:38 +03:00