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
Evgeny Grin (Karlson2k)
f254078644
process_request_body(): minor improvement of code readability
2021-11-24 19:09:30 +03:00
Evgeny Grin (Karlson2k)
6d7825e852
process_request_body(): do not process when no more data is available
2021-11-24 19:09:30 +03:00
Evgeny Grin (Karlson2k)
8a69a44923
process_request_body(): fixed: do not skip chunk closure when too few data available
2021-11-24 19:07:42 +03:00
Evgeny Grin (Karlson2k)
eebf9c28f0
process_request_body(): removed one more unneeded check
2021-11-24 19:07:41 +03:00
Evgeny Grin (Karlson2k)
52c6a34137
process_request_body(): removed unneeded check
...
Non-chunked body must have size.
2021-11-24 19:07:41 +03:00
Evgeny Grin (Karlson2k)
2f18a668c0
process_request_body(): unify checks for chunked upload
2021-11-24 19:07:40 +03:00
Evgeny Grin (Karlson2k)
5b73b66e4e
process_request_body(): removed redundant check
2021-11-24 19:07:40 +03:00
Evgeny Grin (Karlson2k)
71cff2d6a3
process_request_body(): replaced 'int' with 'bool'
2021-11-24 19:07:40 +03:00
Evgeny Grin (Karlson2k)
85dbd8dc52
test_client_put_stop: use TCP_NODELAY for client
2021-11-24 19:07:34 +03:00
Evgeny Grin (Karlson2k)
52b7989822
test_client_put_stop: use content longer than 15 bytes
...
This is required to have two hex digits chunk size.
2021-11-23 15:11:50 +03:00
Evgeny Grin (Karlson2k)
7f68d8de55
Tests: fixed code style
2021-11-23 15:11:50 +03:00
Evgeny Grin (Karlson2k)
742e5bd1b6
Tests: explicitly enforced zero or one exit codes
2021-11-23 15:11:50 +03:00
Evgeny Grin (Karlson2k)
1b435684a7
Clarified termination reasons description
...
Updated termination reasons reporting.
Make sure that MHD_REQUEST_TERMINATED_READ_ERROR is really reported
Before this patch MHD_REQUEST_TERMINATED_WITH_ERROR was reported instead
2021-11-21 22:06:20 +03:00
Evgeny Grin (Karlson2k)
a761eb67b6
Reworking early close flags
...
'early_response' renamed to 'discard_request'.
Changed the way how flags are checked.
2021-11-21 22:06:19 +03:00
Evgeny Grin (Karlson2k)
025d2ab1b3
test_client_put_*: new tests
...
Implemented simple emulation of HTTP client to test various MHD
aspects and thorough checking of all MHD callbacks.
2021-11-21 22:06:19 +03:00
Evgeny Grin (Karlson2k)
2a412f8887
tests and examples: fixed copy-paste errors in doxy
2021-11-21 15:43:19 +03:00
Evgeny Grin (Karlson2k)
eac16d15db
Tests: code style fixes
2021-11-21 15:43:19 +03:00
Evgeny Grin (Karlson2k)
87ab1ec7f7
test and examples: check socket control functions results
2021-11-21 15:43:19 +03:00
Evgeny Grin (Karlson2k)
3b950aef4d
tests: fixed blocking sockets on W32
...
Sockets on W32 were non-blocking due to copy-paste errors.
2021-11-21 15:43:18 +03:00
Evgeny Grin (Karlson2k)
0b9d6e9446
Examples: fixed blocking sockets on W32
...
Sockets on W32 were non-blocking due to copy-paste errors.
2021-11-21 15:43:13 +03:00
Evgeny Grin (Karlson2k)
5cf4c61bb0
microhttpd.h: doxy comments fixes
2021-11-10 12:40:22 +03:00
Evgeny Grin (Karlson2k)
475cfd18d1
Updated doxy for MHD_AccessHandlerCallback
2021-11-09 20:57:02 +03:00
Evgeny Grin (Karlson2k)
0ae9a4c10b
test_{tricky,toolarge}: minor improvement
2021-11-06 19:48:02 +03:00
Evgeny Grin (Karlson2k)
7999c2d7bf
test_{tricky,toolarge}: fixed code style
2021-11-06 19:42:02 +03:00
Evgeny Grin (Karlson2k)
f6c286d79a
tests: fixed copy-paste error in report
2021-11-06 19:41:17 +03:00
Evgeny Grin (Karlson2k)
148faf72bf
mhd_sockets.c: fixed code style
2021-11-06 15:09:21 +03:00
Evgeny Grin (Karlson2k)
a507eb93ee
W32 socket pair: set TCP_NODELAY
...
Set TCP_NODELAY on both ends of socket pair on W32 to disable
unwanted buffering
2021-11-06 15:08:35 +03:00
Evgeny Grin (Karlson2k)
2c86e6b25f
mhd_sockets: cosmetics
2021-11-06 12:34:20 +03:00
Evgeny Grin (Karlson2k)
bc1ea34149
mhd_sockets: added more network error codes
2021-11-06 12:34:20 +03:00
Evgeny Grin (Karlson2k)
d60b990cc9
mhd_sockets: code style fixes
2021-11-06 12:34:19 +03:00
Evgeny Grin (Karlson2k)
7c5b14acec
Doxy: finally clarified how to work with callbacks
...
Clarified doxy descriptions for the key callback AccessHandlerCallback,
MHD_queue_response(), and MHD_suspend_connection()
2021-11-04 16:15:47 +03:00
Evgeny Grin (Karlson2k)
61b997d944
MHD_uint32_to_strx(): rewritten for readability and minor optimization
2021-11-03 16:43:56 +03:00
Evgeny Grin (Karlson2k)
ec2725b5d8
test_str_token{,s}_remove: fixed comments
2021-11-03 14:54:58 +03:00
Evgeny Grin (Karlson2k)
10cb9ff0e7
MHD_str_remove_tokens_caseless_(): improved comments
2021-11-03 14:53:57 +03:00
Evgeny Grin (Karlson2k)
fa4a35d9d5
MHD_str_remove_token_caseless_(): clarified comments
2021-11-02 21:29:57 +03:00
Evgeny Grin (Karlson2k)
93a5a52a01
mhd_str: fixed code style
2021-11-01 21:03:01 +03:00
Evgeny Grin (Karlson2k)
50b4782fe3
mhd_str: clarified doxy for function
2021-11-01 21:02:34 +03:00
Evgeny Grin (Karlson2k)
317691bc97
mhd_str: minor improvement
2021-11-01 21:01:47 +03:00
Evgeny Grin (Karlson2k)
7131f38760
memorypool: minor code improvments
2021-10-31 18:57:09 +03:00
Evgeny Grin (Karlson2k)
528d96de5f
memorypool: fixed code style
2021-10-31 18:48:55 +03:00
Evgeny Grin (Karlson2k)
f40ddb9e08
memorypool: improved macros for manual poisoning
2021-10-31 18:48:40 +03:00
Evgeny Grin (Karlson2k)
ed87ddd217
mhd_bithelpers: unified _MHD_ROTx32() behavior
2021-10-31 18:40:39 +03:00
Evgeny Grin (Karlson2k)
55f059ee0a
Sync doxy header and source
2021-10-31 18:23:23 +03:00
Evgeny Grin (Karlson2k)
9d142ff1a7
microhttpd.h: fixed code style
2021-10-31 18:21:56 +03:00
Evgeny Grin (Karlson2k)
079dfd2cb8
MHD_get_timeout(): improved doxy
2021-10-31 18:21:33 +03:00
Evgeny Grin (Karlson2k)
d5993f6c1f
MHD_queue_response(): restored behavior with wrong parameters
...
Do not crash with NULL connection pointer (as before).
2021-10-31 17:50:48 +03:00