Commit Graph
5080 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) ce1ca4cf4e MHD_run_from_select(): reworked workaround for missing except_fd_set
It was not compatible with flexible FD_SETSIZE
2023-11-07 21:07:41 +03:00
Evgeny Grin (Karlson2k) c66af7359f daemon.c: cosmetics 2023-11-07 20:56:02 +03:00
Evgeny Grin (Karlson2k) 9bdb68358c Used custom FD_SETSIZE in MHD_get_fdset2() 2023-11-07 20:49:11 +03:00
Evgeny Grin (Karlson2k) 89c1076aac Added MHD_OPTION_APP_FD_SETSIZE and MHD_FEATURE_FLEXIBLE_FD_SETSIZE
This should provide better compatibility with platforms with ability
to override FD_SETSIZE.
The new option is used examples and tests.
2023-11-07 20:49:10 +03:00
Evgeny Grin (Karlson2k) a1954f6098 mhd_sockets.h: cosmetics 2023-11-07 20:49:09 +03:00
Evgeny Grin (Karlson2k) 4a072b3de2 daemon.c: cosmetics 2023-11-07 20:49:09 +03:00
Evgeny Grin (Karlson2k) 827edab065 internal.h: added macros for internal threads modes detection 2023-11-07 20:49:09 +03:00
Evgeny Grin (Karlson2k) b4401abfb7 internal.h: moved some macros
This is a correction for a225047802
2023-11-07 20:49:09 +03:00
Evgeny Grin (Karlson2k) 0813a8b2a0 mhd_sockets.h: directly used detected system FD_SETSIZE 2023-11-07 20:49:03 +03:00
Evgeny Grin (Karlson2k) b20fdf2a40 Correction for cdf9b66c61
Fixed compiler warnings
2023-11-06 19:01:24 +03:00
Evgeny Grin (Karlson2k) cdf9b66c61 Added use of configure-detected system default FD_SETSIZE value 2023-11-02 21:42:20 +03:00
Evgeny Grin (Karlson2k) a225047802 Updated and used macros for polling modes 2023-11-01 15:47:01 +03:00
Evgeny Grin (Karlson2k) 75e2addd08 internal.h: added macros for polling mode detection 2023-11-01 13:51:53 +03:00
Evgeny Grin (Karlson2k) 5f8e3c9b93 Adjusted default value of maximum connections 2023-11-01 13:51:45 +03:00
Evgeny Grin (Karlson2k) 6e98d63538 configure: added detection of FD_SETSIZE value and ability to override it 2023-11-01 13:51:27 +03:00
Evgeny Grin (Karlson2k) 934d0f52df configure: warn if building without threads 2023-11-01 13:51:08 +03:00
Evgeny Grin (Karlson2k) c5a84732d5 configure: cosmetics 2023-11-01 13:46:55 +03:00
Evgeny Grin (Karlson2k) 5d195d9289 microhttpd.h: updated doxy for MHD_USE_PEDANTIC_CHECKS 2023-11-01 13:46:44 +03:00
Evgeny Grin (Karlson2k) 159bbfd5c2 daemon: muted possible compiler warning 2023-11-01 13:46:09 +03:00
Evgeny Grin (Karlson2k) 83f9a5d79d daemon.c: cosmetics 2023-11-01 13:46:01 +03:00
Evgeny Grin (Karlson2k) e60359c0b3 Upgraded connection: cosmetics 2023-11-01 13:45:16 +03:00
Evgeny Grin (Karlson2k) 492bce058e digestauth: added asserts, fixed internal doxy 2023-11-01 13:44:58 +03:00
Evgeniy Gavrilenko 90fcf2fc22 websocket_threaded_example: fix websocket url string
Remove extra space character from websocket url string.

The code was broken by beb7fa82 ("fix transmission stall issue with upgraded
TLS connections reported by Nguyen Xuan Viet on the mailinglist").
2023-10-19 08:27:07 +03:00
Evgeny Grin (Karlson2k) 6336d8c796 digest auth: updated header, slightly modified multi-value processing 2023-10-06 17:59:16 +03:00
Evgeny Grin (Karlson2k) ce38b0fa79 Renamed one new basic auth function, improved doxy 2023-10-06 14:12:31 +03:00
Evgeny Grin (Karlson2k) 596cc4b1cb Helper scripts: minor simplification 2023-10-02 18:19:40 +03:00
Evgeny Grin (Karlson2k) e25a7fa283 Updated HTTP methods, headers and reason phrases
Added HTTP methods sorting
2023-10-02 18:10:11 +03:00
Evgeny Grin (Karlson2k) 1ba86164a2 Updated helper scripts 2023-10-02 18:10:11 +03:00
Evgeny Grin (Karlson2k) f5c2724a9f Fixed compatibility with more old compilers 2023-09-27 22:29:09 +03:00
Evgeny Grin (Karlson2k) 79470220c7 Fixed more compiler warnings 2023-09-27 21:36:31 +03:00
Evgeny Grin (Karlson2k) d588a45578 Correction for 93bc2751bf 2023-09-27 20:35:10 +03:00
Evgeny Grin (Karlson2k) 93bc2751bf Improved compatibility with old compilers 2023-09-27 20:02:00 +03:00
Evgeny Grin (Karlson2k) ed4c182944 Implemented correct processing of chunked request encoding with BWS in chunk size line 2023-09-27 19:38:56 +03:00
Evgeny Grin (Karlson2k) 21ffbbd378 Unified bare LF as CRLF handling for request chunked encoding 2023-09-27 19:27:14 +03:00
Evgeny Grin (Karlson2k) 837263e790 connection: added helper macro 2023-09-27 19:27:08 +03:00
Evgeny Grin (Karlson2k) 78e28ecca8 test_long_header: improved, fixed, added error reporting 2023-09-27 17:44:21 +03:00
Evgeny Grin (Karlson2k) b1f2ddbb03 test_put_header_fold: fixed copy-paste error 2023-09-27 15:21:44 +03:00
Evgeny Grin (Karlson2k) 7b2ab60e03 test_long_header: re-use the same port for all checks 2023-09-27 15:21:43 +03:00
Evgeny Grin (Karlson2k) a030a4aef7 zzuf tests: fixed compiler warnings 2023-09-27 09:28:50 +03:00
Evgeny Grin (Karlson2k) 15575e2998 tests: fixed compiler warnings 2023-09-27 09:16:21 +03:00
Evgeny Grin (Karlson2k) dff7ab0d63 test_toolarge: removed debug value introduced by 6ee7fa38d9 2023-09-26 16:48:25 +03:00
Evgeny Grin (Karlson2k) 6ee7fa38d9 Rewritten handling of exhaustion of memory pool when receiving
The new implemented is even more unified and used directly when there
is no space to add pointers to the new header or cookie.

The new implementation has more detailed descriptions in the error reply
bodies.
Situations with too long non-standard request HTTP method are handled
correctly.
The response HTTP error code better matches the reason. For example,
if overwhelming majority of buffer is used by request URI string and
request header cannot fit the rest of the buffer, the reply code
is 414 "URI Too Long" instead of 431 "Request Header Fields Too Large",
which was used previously.
2023-09-26 16:43:33 +03:00
Evgeny Grin (Karlson2k) 449717db69 Added calculation of request headers total size 2023-09-26 16:01:27 +03:00
Evgeny Grin (Karlson2k) cad66b87b8 Detect error earlier if request HTTP version is bad 2023-09-26 16:01:27 +03:00
Evgeny Grin (Karlson2k) 921b183abf Refactoring: store "request target" original length 2023-09-26 16:01:26 +03:00
Evgeny Grin (Karlson2k) 7a638aed1b microhttpd.h: fixed deprecation messages 2023-09-26 16:01:21 +03:00
Evgeny Grin (Karlson2k) 0f75e71e48 Added check for magic number in the request content-lenght 2023-09-26 15:43:29 +03:00
Christian Grothoff 9c032ccca7 Revert "-add support for ICECAST-style uploads"
This reverts commit 19e1ed8355.
2023-09-26 11:58:44 +02:00
Christian Grothoff 4a031e5482 -fix theoretical use-after-free in test on error path 2023-09-25 21:52:48 +02:00
Christian Grothoff 64d90a1a85 -tighten test further 2023-09-25 21:49:57 +02:00