Commit Graph
4924 Commits
Author SHA1 Message Date
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) 22c70e2a3c internal_add_connection(): check for connections limit in thread-safe way, thus allowing to
really use MHD_add_connection() with 'internal' polling mode
2017-06-04 14:52:00 +03:00
Evgeny Grin (Karlson2k) e720ad4587 internal_add_connection(): cosmetics 2017-06-04 14:29:30 +03:00
Evgeny Grin (Karlson2k) 5c28c2ffcb internal_add_connection(): improved thread safety in epoll mode with 'external' add 2017-06-04 14:26:46 +03:00
Evgeny Grin (Karlson2k) 44a92f9f53 internal_add_connection(): added missing TLS session deinit in case of failure 2017-06-04 13:51:38 +03:00
Evgeny Grin (Karlson2k) b93ddc6b5e MHD_cleanup_connections(): improved thread safety 2017-06-04 13:50:21 +03:00
Evgeny Grin (Karlson2k) 47e648bd26 internal_add_connection(): minor refactoring for additional error check and minor optimization 2017-06-04 13:28:18 +03:00
Evgeny Grin (Karlson2k) b65a22107e internal_add_connection(): cosmetics 2017-06-04 13:24:20 +03:00
Evgeny Grin (Karlson2k) 1ab764b2f8 internal_add_connection(): change one parameter type to 'bool' 2017-06-04 13:24:20 +03:00
Evgeny Grin (Karlson2k) 51b64e8bec MHD_connection_mark_closed_(): changed return type to 'bool' 2017-06-03 22:43:09 +03:00
Evgeny Grin (Karlson2k) 3516d336f1 MHD_tls_connection_shutdown(): remember real result of TLS shutdown 2017-06-03 22:26:26 +03:00
Evgeny Grin (Karlson2k) a21ff8a9ef Removed MHD_tls_connection_handle_idle() and MHD_Connection::idle_handler.
Ensure that MHD_connection_update_event_loop_info() is called for MHD_TLS_CONNECTION_INIT state to
properly update read/write event loop info when doing TLS handshake
2017-05-29 21:41:06 +03:00
Evgeny Grin (Karlson2k) 82b66cc5d9 MHD_connection_handle_idle(): added reset of 'in_idle'. Just for clarity and readability. 2017-05-29 20:53:06 +03:00
Evgeny Grin (Karlson2k) 15dfade0d5 examples/timeout.c: Converted newline chars to Unix format 2017-05-29 15:22:42 +03:00
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