Evgeny Grin (Karlson2k)
2ccc281a69
connection: handle large read-ahead situation
2021-06-04 15:22:22 +03:00
Evgeny Grin (Karlson2k)
9ca0b36ab0
connection: do not spend time on building footers for zero-sized responses
...
Footers are not used for non-chunked responses.
2021-06-04 12:59:45 +03:00
Evgeny Grin (Karlson2k)
cdc1db3d2f
test_get_chunked: implemented TODOs
...
Added check for presence of the footer,
Added check for usage of chunked encoding (if 'chunked'
header is present libcurl receives only in chunked mode)
2021-06-03 22:00:06 +03:00
Evgeny Grin (Karlson2k)
533d5cecd4
chunked_example: fixed resource leak
2021-06-03 21:30:11 +03:00
Evgeny Grin (Karlson2k)
f33328efab
Code and comments minor fixes
2021-05-30 22:24:08 +03:00
Evgeny Grin (Karlson2k)
23943a2da6
Calculate size of error responses at compile time
2021-05-26 21:21:16 +03:00
Evgeny Grin (Karlson2k)
0c28412a3a
Refactored handling of incompatible HTTP versions
...
Removed some workarounds
2021-05-26 21:21:15 +03:00
Evgeny Grin (Karlson2k)
547db43087
HTTP version string processing fixes
...
Fixed wrongly used case-insensitive match for HTTP version string,
HTTP version should be checked as case-sensitive.
Hypothetical HTTP/1.2 - HTTP/1.9 must be used as HTTP/1.1 (required
by HTTP/1.1 specification)
2021-05-26 21:21:15 +03:00
Evgeny Grin (Karlson2k)
5e029304d4
test_long_header: minor improvement
2021-05-22 18:22:09 +03:00
Evgeny Grin (Karlson2k)
de6922ca82
Added detection of HTTP version during early parsing
...
Requests with unsupported HTTP versions are rejected as specified
by RFC 7230.
2021-05-21 18:59:49 +03:00
Evgeny Grin (Karlson2k)
65413082c9
md5 small optimization
2021-05-18 22:21:48 +03:00
Evgeny Grin (Karlson2k)
f959b84352
Fixed unaligned data processing in SHA-256 and MD5
2021-05-18 22:17:29 +03:00
Evgeny Grin (Karlson2k)
7b3e010b61
sha-1 minor improvements
2021-05-18 20:05:06 +03:00
Evgeny Grin (Karlson2k)
f59775676f
Fixed SHA-1 calculation with unaligned data
2021-05-18 19:57:58 +03:00
Evgeny Grin (Karlson2k)
89387e53fe
Implemented basement to work with unaligned data
2021-05-18 19:37:10 +03:00
Evgeny Grin (Karlson2k)
7676e698a9
Updated test_sha* and test_md5 with unaligned data
2021-05-16 21:34:31 +03:00
Evgeny Grin (Karlson2k)
9b9b413a1e
Updated .gitignore
2021-05-16 21:26:31 +03:00
Evgeny Grin (Karlson2k)
cea71d6e52
test_sha1: minor fixes
2021-05-16 21:23:07 +03:00
Evgeny Grin (Karlson2k)
714c5735e4
Implemented SHA-1 calculation
2021-05-16 18:21:27 +03:00
Evgeny Grin (Karlson2k)
b25cc0f301
sha256: formatting, cosmetics, typos in comments
2021-05-16 18:21:27 +03:00
Evgeny Grin (Karlson2k)
ab7c8f4efc
sha256: minor optimization
2021-05-16 18:15:39 +03:00
Evgeny Grin (Karlson2k)
255c45dd3b
sha256: re-arranged struct members to have better alignment
2021-05-16 18:15:39 +03:00
Evgeny Grin (Karlson2k)
356187139c
sha256: renamed one function for clarity and uniformity
2021-05-16 18:15:39 +03:00
Evgeny Grin (Karlson2k)
1265e687ff
mhd_bithelpers: replaced macro with static function
...
Bit-rotating macro was replaced with static inline function to avoid two time evaluation
and calculation of the parameters.
2021-05-16 17:53:45 +03:00
Evgeny Grin (Karlson2k)
8a9a64a703
Added new response create function.
...
Added MHD_create_response_from_buffer_with_free_callback_cls function
2021-05-12 20:52:13 +03:00
Evgeny Grin (Karlson2k)
9ac7492bb5
Further clarified requirement to use MHD_get_timeout()
...
Emphasise that it is necessary to use MHD_get_timeout() with any
external sockets polling function.
2021-05-12 20:11:32 +03:00
Evgeny Grin (Karlson2k)
fc0385be98
test_get_chunked_close: new test
...
Test chunked encoding with non-Keep-Alive connections
2021-05-06 11:26:34 +03:00
Evgeny Grin (Karlson2k)
81bbdc7048
chunked_example: enforce to use chunked encoding
...
Previously MHD switches to identity encoding if connection
is not Keep-Alive
2021-05-06 11:26:34 +03:00
Evgeny Grin (Karlson2k)
edb98b9a34
mhd_str: minor optimization
2021-04-30 17:01:42 +03:00
Christian Grothoff
5a5e402b11
fix typos
2021-04-27 23:31:58 +02:00
Christian Grothoff
8ee4e54f4f
fix typos
2021-04-27 23:23:00 +02:00
Christian Grothoff
67c79a9cd1
fix typos
2021-04-27 23:22:31 +02:00
Christian Grothoff
450b868804
add David's WS example
2021-04-26 14:33:55 +02:00
Christian Grothoff
c488cadbc1
verbatim import of David Gausmann's websocket extension; tests do not yet pass, only enabled with --enable-experimental
2021-04-26 14:12:23 +02:00
Evgeny Grin (Karlson2k)
1e14757122
mhd_mono_clock: cosmetic edit
2021-04-25 17:16:06 +03:00
Evgeny Grin (Karlson2k)
1cab154366
Bump MHD_VERSION to indicate development version
2021-04-25 17:16:05 +03:00
Evgeny Grin (Karlson2k)
7b93a775cd
Released GNU libmicrohttpd 0.9.73
2021-04-25 13:53:59 +03:00
Evgeny Grin (Karlson2k)
0a374c71b8
Updates for MSVC builds
2021-04-24 23:01:18 +03:00
Evgeny Grin (Karlson2k)
eb76464cdf
connection.c: muted compiler warning for builds without messages
2021-04-24 18:06:08 +03:00
Christian Grothoff
7241cb611a
-fix typos
2021-04-24 00:05:37 +02:00
Evgeny Grin (Karlson2k)
1683a563db
Fixed compiler warning
2021-04-23 18:05:37 +03:00
Evgeny Grin (Karlson2k)
fa3e94ddcd
Fixed compiler warnings on x32
2021-04-23 18:05:36 +03:00
Evgeny Grin (Karlson2k)
4049caeb1c
Fixed build without poll()
2021-04-23 18:05:36 +03:00
Evgeny Grin (Karlson2k)
ba5174d488
Fixed build with MSVC, fixed compiler warnings
2021-04-23 18:05:24 +03:00
Evgeny Grin (Karlson2k)
70a4aff15b
daemon: fixed build without HTTPS
2021-04-22 20:07:52 +03:00
Evgeny Grin (Karlson2k)
a55b52f027
test_upgrade{,_large}: removed use on unportable function
...
Usage of CORK is not required for upgraded connection,
CORK is not portable. To make test behavior unified for
all supported platforms, CORK usage is removed from tests.
2021-04-22 13:17:29 +03:00
Evgeny Grin (Karlson2k)
79df07303a
upgraded connection: ensure normal buffering
...
Ensure that TCP_CORK and TCP_NODELAY are disabled for
upgraded sockets.
2021-04-22 12:11:02 +03:00
Evgeny Grin (Karlson2k)
387ec260ee
Fixed copy-paster and typo errors
2021-04-22 12:08:21 +03:00
Evgeny Grin (Karlson2k)
af1bf13fad
Formatting and comments for 4e8f86a655
2021-04-19 18:58:52 +03:00
Evgeny Grin (Karlson2k)
4e8f86a655
Added support for ALPN protocols list for TLS connections
2021-04-19 18:39:56 +03:00