Commit Graph
5211 Commits
Author SHA1 Message Date
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
Evgeny Grin (Karlson2k) a5cf04b5d0 Added new tool perf_replies
Added new directory "tools" and one new tool in this directory.
2023-07-03 18:31:47 +03:00
Evgeny Grin (Karlson2k) 08fe527f03 connection: fixed sending error responses
Could be problematic with come compilers after
eaf1fa0889
2023-07-03 11:38:48 +03:00
Evgeny Grin (Karlson2k) 021923493b Make sure that some space for request body is always available 2023-06-29 17:07:04 +03:00
Evgeny Grin (Karlson2k) f02888d4de Focused all read-buffer grows in a single point, related improvements.
Improved handling of low memory in connection pool.
Improved handling of read buffer growing.
Removed impossible conditions combinations handling.
2023-06-20 23:22:58 +03:00
Evgeny Grin (Karlson2k) 8b17c9155f try_grow_read_buffer(): better handling of edge cases
Used application specified grow size instead of MHD default size.
When free space is becoming low first try to increase free space
to exact increment value before switching to "low memory" mode.
2023-06-20 23:22:58 +03:00
Evgeny Grin (Karlson2k) 8fd9b6bdbb Fixed some comments 2023-06-20 23:22:58 +03:00
Evgeny Grin (Karlson2k) e620738a22 W32 VS Projects: fixed code parsing 2023-06-20 23:22:58 +03:00
Evgeny Grin (Karlson2k) 0f20fe46ee Fixed possible timeout value trim on 32-bits platforms 2023-06-20 23:22:58 +03:00
Evgeny Grin (Karlson2k) 67061d5ce2 process new connection: fixed missing mutex unlock in error handling path 2023-06-20 23:22:57 +03:00
Evgeny Grin (Karlson2k) a80d80604a Adjusted buffer increase default step size 2023-06-20 23:22:57 +03:00
Evgeny Grin (Karlson2k) f7bae2ce3e Minor refactoring for partially processed request body 2023-06-20 23:22:57 +03:00
Evgeny Grin (Karlson2k) 30bf05560d process_request_body(): minor readability improvementы 2023-06-20 23:22:56 +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) 5a9f64bc6a connection: fixed pipelined requests processing 2023-06-20 23:22:56 +03:00
Evgeny Grin (Karlson2k) 2e996ee5c2 Added proper connection's buffers pre-initialisaion 2023-06-20 23:22:56 +03:00