Evgeny Grin (Karlson2k)
5437bfdf9c
MHD_monotonic_msec_counter(): added new internal function
2021-08-27 12:53:09 +03:00
Evgeny Grin (Karlson2k)
cd6f8668cd
mhd_mono_clock: simplified calculations on old W32 platforms
2021-08-27 11:36:25 +03:00
Evgeny Grin (Karlson2k)
40f7a33a09
mhd_mono_clock: updated clock IDs
2021-08-27 11:34:35 +03:00
Evgeny Grin (Karlson2k)
0e85520a9b
Updated .gitignore
2021-08-26 17:24:45 +03:00
Evgeny Grin (Karlson2k)
5929f53ef8
src/testcurl/https/Makefile.am: removed non-existing include dir
2021-08-26 16:21:24 +03:00
Evgeny Grin (Karlson2k)
78b86d29f1
curl_version_check: mark function as static
2021-08-26 16:20:49 +03:00
Evgeny Grin (Karlson2k)
143eb48f21
Moved test help file
2021-08-26 16:15:05 +03:00
Evgeny Grin (Karlson2k)
f53fa957fc
test_timeout: fixed dead assigment
2021-08-26 16:14:27 +03:00
Evgeny Grin (Karlson2k)
f126592e0f
test_quiesce: fixed dead assignment
2021-08-25 22:03:38 +03:00
Evgeny Grin (Karlson2k)
7d8babba48
test_post: fixed test error report
2021-08-25 22:03:14 +03:00
Evgeny Grin (Karlson2k)
75da17cbd0
test_get_close_keep_alive: mute static analyzer
2021-08-25 21:56:04 +03:00
Evgeny Grin (Karlson2k)
4ef771a1a7
test_postprocessor_md: test all returned values
2021-08-25 21:28:15 +03:00
Evgeny Grin (Karlson2k)
09c4a22975
websocket_threaded_example: fix static analyzer error
2021-08-25 20:50:07 +03:00
Evgeny Grin (Karlson2k)
46c0d3f470
querystring_example: free memory with new error check
2021-08-25 20:33:51 +03:00
Evgeny Grin (Karlson2k)
0497e9c801
tlsauthentication.c: better fix for compiler warning
2021-08-25 20:22:57 +03:00
Evgeny Grin (Karlson2k)
40501c2f5d
tlsauthentication.c: inelegant mute of compiler warning
2021-08-25 19:55:06 +03:00
Evgeny Grin (Karlson2k)
5feee053a2
querystring_example: fixed compiler warning, added error checking
2021-08-25 19:40:43 +03:00
Evgeny Grin (Karlson2k)
d478fcfb48
connection.c: Ensure that variable is initialized
2021-08-25 17:17:41 +03:00
Christian Grothoff
79868fab86
-typo
2021-08-24 15:17:01 +02:00
Evgeny Grin (Karlson2k)
8361a3a7b7
Inherit non-blocking status when accepting on most platforms
...
When accept() is used, socket non-blocking flag is inherited from listen
socket almost on all platforms (except Linux kernel).
Actually modern platforms use accept4() so this change is mostly for W32.
2021-08-24 16:06:11 +03:00
Evgeny Grin (Karlson2k)
c556824313
Added flag for non-blocking listen socket
2021-08-24 16:06:11 +03:00
Evgeny Grin (Karlson2k)
4371815fc7
MHD_accept_connection: refactoring to improve readability
2021-08-24 16:06:10 +03:00
Evgeny Grin (Karlson2k)
3420745f28
MHD_accept_connection: cosmetics
2021-08-24 16:06:10 +03:00
Evgeny Grin (Karlson2k)
7a2a93b4a1
Fixed typo in 6621c05557
2021-08-24 16:06:10 +03:00
Evgeny Grin (Karlson2k)
6621c05557
mhd_assert: added check for both _DEBUG and NDEBUG defined
2021-08-24 10:59:10 +03:00
Evgeny Grin (Karlson2k)
bacd53ecfc
mhd_assert: ensure that either _DEBUG or NDEBUG is defined
2021-08-24 10:56:08 +03:00
Evgeny Grin (Karlson2k)
5ef86b7489
Stop deallocating memory buffer after each hunk or reply part
2021-08-23 22:23:35 +03:00
Evgeny Grin (Karlson2k)
7f33ea76e7
Stop shrinking memory buffer after preparing reply header or footers
2021-08-23 22:22:16 +03:00
Evgeny Grin (Karlson2k)
95d1725ce3
Connection: allocate persistent connection memory with helper
...
The new helper function may reduce read or write buffer to make
available the required amount of memory.
This allow to use entire pool for read or write buffer.
2021-08-23 22:20:50 +03:00
Evgeny Grin (Karlson2k)
5c8b5aefd0
memory pool: added internal helper function
2021-08-23 22:13:00 +03:00
Evgeny Grin (Karlson2k)
11a2e0126e
Added new connection state MHD_CONNECTION_START_REPLY
2021-08-23 12:54:42 +03:00
Evgeny Grin (Karlson2k)
e76e18e453
Added new connection state MHD_CONNECTION_FULL_REQ_RECEIVED
...
The new state improved readability of the code.
2021-08-21 19:51:50 +03:00
Evgeny Grin (Karlson2k)
37593020c7
Added new connection state MHD_CONNECTION_REQ_LINE_RECEIVING
...
This allow to distinguish between connections received any data and
connections without any incoming data.
2021-08-21 19:44:48 +03:00
Evgeny Grin (Karlson2k)
4d7d35d8a2
build_header_response(): clarified comment
2021-08-21 18:37:16 +03:00
Evgeny Grin (Karlson2k)
66e6f4f2e9
connection.c: simplified request line processing, fix
...
Fixed potential hung when the first line is empty and no
other connections are processed.
2021-08-21 18:35:21 +03:00
Evgeny Grin (Karlson2k)
4fb57ae153
Added new connection flag "stop_with_error".
...
Stopped usage of "read_close" flag when read hasn't been closed.
2021-08-21 18:35:20 +03:00
Evgeny Grin (Karlson2k)
55785fe949
enum MHD_CONNECTION_STATE: sorted states
2021-08-21 18:35:20 +03:00
Evgeny Grin (Karlson2k)
9d2588d9d8
enum MHD_CONNECTION_STATE: removed numbers from doxy
...
The numbers were meaningless as states are switched not in order
2021-08-21 18:35:20 +03:00
Christian Grothoff
067628c6f7
-fix typo
2021-08-21 14:11:02 +02:00
Evgeny Grin (Karlson2k)
d8ea84fd6d
connection.c: minor updates: used new reply flags, added asserts and TODOs
2021-08-21 14:28:05 +03:00
Evgeny Grin (Karlson2k)
08d144ba19
Do not use the same flag for chunked request and chunked reply
2021-08-21 13:18:29 +03:00
Evgeny Grin (Karlson2k)
5d35f4f7f9
replies: fixed HTTP/1.0 keep-alive replies
...
Always send "Connection:" headers when replying with keep-alive HTTP/1.0
2021-08-20 15:42:34 +03:00
Evgeny Grin (Karlson2k)
4169e7b6cc
test_get_close_keep_alive: added more combinations and more checks
...
The test now checks all combination of parameters.
Added check for absence of "Keep-Alive" header when it's needed.
Added checks for HTTP version of MHD replies.
Added checks whether socket was / wasn't closed by libcurl.
2021-08-20 13:39:05 +03:00
Evgeny Grin (Karlson2k)
a0edd36628
Simple fix for 6f48db46b1
2021-08-19 21:18:51 +03:00
Evgeny Grin (Karlson2k)
6f48db46b1
Added response flag to always send "Connection:" header
2021-08-19 20:11:13 +03:00
Evgeny Grin (Karlson2k)
dab2db20fd
microhttpd.h: moved up MHD_VERSION macro
2021-08-19 16:48:25 +03:00
Evgeny Grin (Karlson2k)
a96eaaaa25
Response flags: clarified functionality, added synonymous names
...
Fixed support for explicitly requested Keep-Alive with
responses with MHD_RF_HTTP_VERSION_1_0_RESPONSE flag
2021-08-19 16:40:11 +03:00
Evgeny Grin (Karlson2k)
f5fc702a4d
RFC compliance: HTTP/1.1 replies for HTTP/1.0 clients
2021-08-19 14:32:15 +03:00
Evgeny Grin (Karlson2k)
5c7a9ff9c3
setup_reply_properties(): removed one assert
...
Actually non-chunked can be enforced by response flags
2021-08-18 20:19:26 +03:00
Evgeny Grin (Karlson2k)
be1065889b
keepalive_possible: simplified; added new value for MHD_ConnKeepAlive
2021-08-18 19:21:42 +03:00