Commit Graph
553 Commits
Author SHA1 Message Date
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
Evgeny Grin (Karlson2k) b99c290230 Prevent repetitive analysing of headers to detect Keep-Alive/Close of connection. 2017-05-05 21:05:49 +03: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
Evgeny Grin (Karlson2k) ccfe7bafaf reason_phrase.c: Fixed shift in HTTP reasons strings.
Added test for HTTP reasons strings.
2017-04-26 15:22:46 +03:00
Evgeny Grin (Karlson2k) b4a7abf366 MHD_start_daemon(): allow MHD_USE_POLL only with MHD_USE_THREAD_PER_CONNECTION for backward compatibility.
New applications are advised to use MHD_USE_INTERNAL_POLLING_THREAD with MHD_USE_THREAD_PER_CONNECTION.
2017-04-25 19:27:03 +03:00
Christian Grothoff b57456c2e6 relax space-in-field-name checks only if new MHD_USE_PERMISSIVE_CHECKS flag is set 2017-04-24 17:30:26 +02:00
Christian Grothoff e95ec4874d enforce RFC 7230 no-whitespace in header field name rule if MHD_USE_PEDANTIC_CHECKS is set 2017-04-23 20:07:10 +02:00
Christian Grothoff ef49636130 replace sprintf() with MHD_snprintf_() 2017-04-23 19:21:35 +02:00
Evgeny Grin (Karlson2k) a6b47251b8 Fixed support for old libgcrypt on W32 with W32 threads. 2017-04-22 20:43:17 +03:00
Evgeny Grin (Karlson2k) 54def24e97 Releasing GNU libmicrohttpd 0.9.53 2017-04-11 22:18:10 +03:00
Evgeny Grin (Karlson2k) fea6bf18a1 HTTPS test fixes and improvements:
always skip tests if libcurl do not support HTTPS (instead of failing)
return 99 in case of global errors (MHD-unrelated)
print error result if test if failed
fixed ignored result of epoll test in test_https_get_select
allow compilation by C89 compiler
2017-04-10 20:00:02 +03:00
Evgeny Grin (Karlson2k) 0bf9a2285e zzuf tests: make compatible with *BSD by replacing obsoleted setpgrp() with setpgid(). 2017-04-06 23:03:19 +03:00
Evgeny Grin (Karlson2k) 58274f943d Used "127.0.0.1" instead of "localhost" in all tests to avoid accidental try by IPv6 2017-04-06 22:17:04 +03:00
Evgeny Grin (Karlson2k) 3ed1305167 Updated autoinit_funcs.h to latest upstream version with proper support of Oracle/Sun compiler. 2017-04-05 14:18:58 +03:00
Evgeny Grin (Karlson2k) 218694a400 Converted many 'strlen()' from run-time to compile-time processing 2017-04-05 12:56:40 +03:00
Evgeny Grin (Karlson2k) c02d8f0332 ChangeLog: added missing entries. 2017-03-30 19:13:54 +03:00
Evgeny Grin (Karlson2k) 6f6a4e220b MHD_start_daemon(): obey MHD_USE_ITC in thread pool mode 2017-03-26 13:52:13 +03:00
Christian Grothoff 11fc9224bd remove dead code converting hex number to size_t 2017-03-25 20:59:16 +01:00
Christian Grothoff bf7418b3d9 fix #4967 2017-03-25 20:55:32 +01:00
Evgeny Grin (Karlson2k) 8d9065a077 MHD_start_daemon(): check for invalid combination of MHD_USE_NO_LISTEN_SOCKET and
MHD_OPTION_LISTEN_SOCKET
2017-03-25 21:01:13 +03:00
Christian Grothoff 7aa69301bd add -lrt for glibc < 2.17 compatibility 2017-03-21 14:22:20 +01:00
Evgeny Grin (Karlson2k) f3dd2a6303 Added autoconf module for detection of select() trigger on shutdown of listening socket. 2017-03-20 00:56:19 +03:00
Evgeny Grin (Karlson2k) e3ce8fdf57 Rewritten logic of handling "upgraded" TLS connections in epoll mode. 2017-03-19 14:16:36 +03:00
Evgeny Grin (Karlson2k) 9fec9b35ec Do not fail on overflown read buffer while connection is suspended. 2017-03-17 10:52:38 +03:00
Evgeny Grin (Karlson2k) a10c64c793 Revert "MHD_run_from_select(): removed ability to run epoll"
This partially reverts commit 875e27c51b.
2017-03-16 23:52:35 +03:00
Evgeny Grin (Karlson2k) 88fee01b55 Fixed logic of idle disconnection: connection should be disconnected not early than "timeout",
not before "timeout" number of seconds.
2017-03-16 23:14:35 +03:00
Evgeny Grin (Karlson2k) 9333188824 Updated ChangeLog 2017-03-16 22:43:47 +03:00
Evgeny Grin (Karlson2k) 76500135fe Update connection last activity if and only if any data was received or transmitted. 2017-03-16 21:48:59 +03:00
Evgeny Grin (Karlson2k) 88374e04d2 Thread-safety: always lock mutex when modifying "cleanup" or "timeout" DL-lists 2017-03-16 20:39:58 +03:00