2510 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 69d990f4f8 Releasing GNU libmicrohttpd 0.9.55 v0.9.55 2017-05-28 23:30:32 +03:00
Evgeny Grin (Karlson2k) e03de7c201 Fixed HTTP "upgrade" after 7d3050325e 2017-05-21 23:01:21 +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) a7b6407cc2 cleanup_connection(): fixed cleanup of suspended connection 2017-05-21 17:43:14 +03:00
Evgeny Grin (Karlson2k) 3a0f1ddb10 close_connection(): added two EXTRA_CHECKs 2017-05-21 17:28:30 +03:00
Evgeny Grin (Karlson2k) a3519410ee MHD_get_connection_info(): fixed returned 'bool' which is not a member of union MHD_ConnectionInfo 2017-05-21 17:27:31 +03:00
Evgeny Grin (Karlson2k) 5060c37b95 Removed leftover comment 2017-05-21 17:25:28 +03:00
Evgeny Grin (Karlson2k) c13d2767e2 Fixed missing mutex unlock in 7d3050325e 2017-05-21 17:24:15 +03:00
Evgeny Grin (Karlson2k) 7d3050325e MHD_suspend_connection(): prevent suspending of connections scheduled for HTTP "Upgrade" 2017-05-21 16:11:25 +03:00
Evgeny Grin (Karlson2k) a56b568fc9 process_request_body(): fixed compiler warning,
reduced scope of variables,
variables renamed for readability,
minor optimizations
2017-05-21 13:06:43 +03:00
Evgeny Grin (Karlson2k) c7e815a806 Fixed possible null dereference in HTTPS test 2017-05-16 23:36:29 +03:00
Evgeny Grin (Karlson2k) 6fe7680386 Do not build upgrade example in upgrade is disabled by configure 2017-05-16 21:43:37 +03:00
Evgeny Grin (Karlson2k) ab284e1035 Fixed compiler warning. 2017-05-16 21:17:26 +03:00
Evgeny Grin (Karlson2k) 28ca871401 Fixed response cleanup regression introduced by e264d9ec9e 2017-05-16 21:11:46 +03:00
Evgeny Grin (Karlson2k) 9e191bf65f Added file missing in e93439da71 2017-05-15 20:37:14 +03:00
Evgeny Grin (Karlson2k) 64b53a4e7c Added more comments for start upgrade callback function. 2017-05-15 20:06:09 +03:00
Evgeny Grin (Karlson2k) e264d9ec9e Fixed response leak when upgrade failed 2017-05-14 22:30:28 +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) 76cbe3d3b3 thread_main_handle_connection(): update states of connection after resume 2017-05-14 14:44:15 +03:00
Evgeny Grin (Karlson2k) fefb1e5b60 Improved resume_suspended_connections() handling:
Removed extra call from MHD_run(), moved call in MHD_epoll() so resumed connections are handled without delay
2017-05-14 14:31:10 +03:00
Evgeny Grin (Karlson2k) a66ec8da42 internal_run_from_select(): remove extra call for epoll run as epoll called directly 2017-05-14 14:16:29 +03:00
Evgeny Grin (Karlson2k) 858483b5be MHD_connection_update_event_loop_info(): do not update states of suspended connections 2017-05-11 22:51:00 +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) 02f1f5e5cc resume_suspended_connections(): minor optimization 2017-05-11 22:31:47 +03:00
Evgeny Grin (Karlson2k) 534d586422 resume_suspended_connections(): really mark resumed connection as "ready" in epoll mode 2017-05-11 22:24:10 +03:00
Evgeny Grin (Karlson2k) 19972a8edd More minor fixes 2017-05-11 22:20:32 +03:00
Evgeny Grin (Karlson2k) 1d5c381b4e Compiler warning minor fixes 2017-05-11 21:28:27 +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) 7cb47792c7 Fixed compiler warning 2017-05-09 22:56:30 +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) 17d1176f26 Added internal function for finding token in request headers 2017-05-09 22:20:43 +03:00
Evgeny Grin (Karlson2k) 22ab1e90ed Detect several tokens in single header line of response. 2017-05-09 22:20:43 +03:00
Evgeny Grin (Karlson2k) ad7652a28c Added internal function for finding token in response headers MHD_check_response_header_token_ci() 2017-05-09 22:20:42 +03:00
Evgeny Grin (Karlson2k) e93439da71 Added function for detection of token inside comma-separated string, added tests 2017-05-09 22:20:42 +03:00
Evgeny Grin (Karlson2k) b03ee4c52a Fixed missing include 2017-05-09 22:20:42 +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
Evgeny Grin (Karlson2k) 8a88bc9335 microhttpd.h: deprecate unused MHD_RESPONSE_HEADER_KIND value 2017-05-06 22:02:30 +03:00
Evgeny Grin (Karlson2k) b99c290230 Prevent repetitive analysing of headers to detect Keep-Alive/Close of connection. 2017-05-05 21:05:49 +03:00
Evgeny Grin (Karlson2k) 98a4f3f4fe Used local "mhd_limits.h" for better compatibility 2017-05-05 13:42:18 +03:00
Evgeny Grin (Karlson2k) d9df0418b3 connection.c: more cleanup after completed of serving request. 2017-05-05 13:29:13 +03:00
Evgeny Grin (Karlson2k) ae6ab22d2b transmit_error_response(): allow to transmit error even if response was set. 2017-05-05 12:55:47 +03:00
Evgeny Grin (Karlson2k) 2849ef7fb0 Fixed and formatted b4216c60fd 2017-05-05 12:48:23 +03:00
José Bollo b4216c60fd Check response existence on upgrade
When a connection upgrade is requested and when the
request sent an error reply, the response is most of
the time already sent when the test on
connection->response->upgrade_handler is made, leading
to dereferencing NULL.

Two possibilities exist:

  NULL == connection->response || NULL == connection->response->upgÿrade_handler

or

  NULL != connection->response && NULL == connection->response->upgraÿde_handler

The first is prefered because it is probably safer to close the
connection in that case.

Change-Id: Ie6e7fc165f7fe3635ade0952bb34a0b937d38716
Signed-off-by: José Bollo <jobol@nonadev.net>
Signed-off-by: Evgeny Grin (Karlson2k) <k2k@narod.ru>
2017-05-04 23:33:34 +03:00
Christian Grothoff 8823f63b50 fix dist issue v0.9.54 2017-05-02 18:55:44 +02:00
Christian Grothoff 76cf7d7f58 documentation, adding MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE, releasing 0.9.54 2017-05-02 18:53:50 +02:00
Evgeny Grin (Karlson2k) 33f121a4f6 Replaced flags MHD_USE_PEDANTIC_CHECKS and MHD_USE_PERMISSIVE_CHECKS by
single option MHD_OPTION_STRICT_FOR_CLIENT.
2017-04-27 22:36:09 +03:00