Christian Grothoff
acd39ed23d
releasing libmicrohttpd 0.9.60
2018-11-06 19:55:27 +01:00
Christian Grothoff
3fc686e335
initialize epoll_fd even if we have no listen fd, patch by Jose Bollo
2018-11-01 16:31:03 +01:00
Christian Grothoff
4728124102
notify main thread about thread termination for instant clean up
2018-10-20 12:45:21 +02:00
Christian Grothoff
9199e5aa3a
From: Gauthier Haderer <ghaderer@wyplay.com>
...
Date: Mon, 15 Oct 2018 14:11:39 +0200
Subject: [PATCH] Add response flag to force version to 1.0 and maintain
connection management.
The existing MHD_RF_HTTP_VERSION_1_0_ONLY flag already changes MHD's
behavior to apply HTTP 1.0 rules for connection management. When
enabled, MHD sends a response using the same version as used in the
request (is this normal?).
What I want is MHD responding as a HTTP 1.0 server with support for
connection management headers would do. This is what the
MHD_RF_HTTP_VERSION_1_0_RESPONSE response flag is for.
You can even combine it with MHD_RF_HTTP_VERSION_1_0_ONLY to change the
response's HTTP version while maintaining strict compliance with HTTP
1.0 regarding connection management.
This solution is not perfect as this flag is set on the response which
is created after header processing. So MHD will behave as a HTTP 1.1
server until the response is queued. It means that an invalid HTTP 1.1
request will fail even if the response is sent with HTTP 1.0 and the
request would be valid if interpreted with this version. For example,
this request will fail in strict mode:
GET /dummy HTTP/1.1
as the Host header is missing and is mandatory in HTTP 1.1, but it
should succeed when interpreted with HTTP 1.0.
I don't think this is a big issue in practice. Besides, being able to
change the HTTP version on a response basis is really convenient when
using MHD in a test framework where we need to validate a client against
HTTP 1.1 AND HTTP 1.0.
2018-10-16 20:44:39 +02:00
Christian Grothoff
0db81a9248
fix #5411
2018-10-05 19:23:26 +02:00
Christian Grothoff
a7c0b04cce
properly recognize Dirk B.
2018-07-14 13:27:46 +02:00
Christian Grothoff
2c47a23dec
integrate TLS PSK patch from Tal Moaz (plus documentation, plus style and bugfixes
2018-07-14 13:27:45 +02:00
Christian Grothoff
2ed04522e2
add support for digest auth with hashed password
2018-07-14 13:27:45 +02:00
Christian Grothoff
85913afa11
move to canonical gettext
2018-03-10 12:28:34 +01:00
Christian Grothoff
0ebdff94d4
fix test_upgrade transient failures ( #5189 )
2018-03-02 21:45:26 +01:00
Christian Grothoff
fc495439b4
call completion handler also for upgrade connections
2018-02-27 23:28:01 +01:00
Christian Grothoff
9bf8e55fe1
fixing #5278 as suggested by reporter
2018-02-16 03:10:24 +01:00
Christian Grothoff
21b2dd96aa
getting ready for 0.9.59
2018-02-01 10:18:02 +01:00
Christian Grothoff
12a6689266
fix mask
2018-02-01 08:40:27 +01:00
Christian Grothoff
2dd1b43e09
fix #5260 as suggested by reporter
2018-01-29 17:35:15 +01:00
Christian Grothoff
867c58add0
fix warnings for __clang_major__ for non-clang compilers
2018-01-04 12:25:07 +01:00
Evgeny Grin (Karlson2k)
98cd69d190
Doxygen fixes
2017-12-11 17:13:45 +03:00
Evgeny Grin (Karlson2k)
b4aa632ce2
Releasing GNU libmicrohttpd 0.9.58
2017-12-07 21:09:24 +03:00
Evgeny Grin (Karlson2k)
56077dce84
https tests: completely exclude 3DES from tests
...
as it considered as "unsafe" and could be disabled in libs
2017-12-07 16:03:15 +03:00
Evgeny Grin (Karlson2k)
ace60e2353
docs: install documentation picture alongside documentation files
2017-12-04 15:46:18 +03:00
Christian Grothoff
db6a2374ad
fix warning 'Failed to get listen port number due to small buffer' encountered when we try to derive the port of a unix domain socket
2017-11-27 23:01:39 +01:00
Evgeny Grin (Karlson2k)
561cc184f1
Releasing GNU libmicrohttpd 0.9.57
2017-11-27 22:30:30 +03:00
Evgeny Grin (Karlson2k)
cdbb60f57c
Update README.
2017-11-27 21:47:15 +03:00
Evgeny Grin (Karlson2k)
c49871e76c
Updated ChangeLog
2017-11-27 12:59:59 +03:00
Evgeny Grin (Karlson2k)
8c8f7c9614
Fixed builds with size optimisation.
2017-11-25 19:03:24 +03:00
Christian Grothoff
59b4a6a00a
releasing libmicrohttpd 0.9.56
2017-11-24 20:33:43 +01:00
Evgeny Grin (Karlson2k)
add9d89d3b
Added MHD_FEATURE_SENDFILE test feature
2017-11-23 17:56:55 +03:00
Evgeny Grin (Karlson2k)
ee7a8f2c54
Updated ChangeLog
2017-11-23 09:25:27 +03:00
Evgeny Grin (Karlson2k)
2ddfa02985
Updated ChangeLog.
2017-11-01 21:32:38 +03:00
Christian Grothoff
330a40552c
add MHD_free(), as suggested by Tim on the mailinglist
2017-10-09 22:41:11 +02:00
Christian Grothoff
f69ca10dd0
Fix at-limit race
2017-09-26 14:04:37 +02:00
Evgeny Grin (Karlson2k)
3474e1b7f9
Fixed sending responses >16KiB in HTTPS mode with epoll
2017-09-08 22:02:47 +03:00
Evgeny Grin (Karlson2k)
5d497ac699
Updated chunked_example.c
2017-07-25 11:41:46 +03:00
Evgeny Grin (Karlson2k)
67f0f76b90
Use GNUTLS_NONBLOCK (if available) for TLS sessions
2017-07-13 21:44:03 +03:00
Evgeny Grin (Karlson2k)
a7b7a32ec6
Dropped dependency on libgcrypt with new GnuTLS (>2.12.20) versions
2017-06-20 23:55:34 +03:00
Evgeny Grin (Karlson2k)
8eb8e558f0
Dropped non-functional Symbian support.
2017-06-14 21:46:12 +03:00
Evgeny Grin (Karlson2k)
5c988da516
MHD_connection_handle_write(): simplified and unified code, removed dead code.
...
Functionality is unchanged.
2017-06-05 23:48:51 +03:00
Evgeny Grin (Karlson2k)
35be224f8c
run_tls_handshake(): refactoring: return false if data send is not (yet) allowed
2017-06-05 22:21:40 +03:00
Evgeny Grin (Karlson2k)
b784423084
MHD_add_connection(): updated doxy to reflect that per-IP-limit actually is NOT ignored.
...
Skipping of per-IP-limit could be easily implemented by request.
2017-06-04 15:07:25 +03:00
Evgeny Grin (Karlson2k)
69d990f4f8
Releasing GNU libmicrohttpd 0.9.55
2017-05-28 23:30:32 +03:00
Evgeny Grin (Karlson2k)
0ecf4f26e4
resume_suspended_connections(): do not update connection state during resuming,
...
handle update of states in main loop as handling of locking can significantly increase
complexity of processing in resume_suspended_connections().
This revert 16da279752 , but resumed connections in epoll
mode are processed already faster after 534d586422 .
2017-05-21 18:54:44 +03:00
Evgeny Grin (Karlson2k)
6c991e0929
Handle resumed connections and closed "upgraded" connections in thread-per-connection mode with select(),
...
do not use zero delay in MHD_poll_listen_socket() if connections are resumed
2017-05-14 15:09:38 +03:00
Evgeny Grin (Karlson2k)
5c71e7550e
MHD_poll_listen_socket(): handle resumed connections and closed "upgraded" connections
2017-05-14 15:09:38 +03:00
Evgeny Grin (Karlson2k)
16da279752
resume_suspended_connections(): update states of connection after resuming
2017-05-11 22:38:41 +03:00
Evgeny Grin (Karlson2k)
787bfd1859
Do not add any "Connection" headers for "upgrade" connections.
2017-05-11 14:28:18 +03:00
Evgeny Grin (Karlson2k)
3cc303b750
Resume resuming connection before other processing in external polling mode
2017-05-11 14:27:59 +03:00
Evgeny Grin (Karlson2k)
917342b3fb
Do not add "Connection: Keep-Alive" header for "upgrade" connections
2017-05-09 23:17:57 +03:00
Evgeny Grin (Karlson2k)
e0825eab13
Fixed: check all request "Connection" headers for "Close" and "Upgrade" tokens instead of
...
using only first "Connection" header with full string match.
2017-05-09 22:20:43 +03:00
Evgeny Grin (Karlson2k)
4809ee654a
Revert: continue match footers in MHD_get_response_header().
...
This is a partial revert of 6894504f51
2017-05-09 12:31:05 +03:00
Evgeny Grin (Karlson2k)
6894504f51
Fixed MHD_get_response_header(): used case-insensitive match for header name, use only headers
2017-05-09 12:22:50 +03:00