NEWS 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. Sun 26 Dec 2021 20:30:00 MSK
  2. Released GNU libmicrohttpd 0.9.75 -EG
  3. This is a correction release.
  4. The main improvement is the implementation of workaround for some
  5. OSes (like OpenBSD 7) where "monotonic" clock may jump back. Now
  6. MHD is able to automatically detect such situation and recover if
  7. the jump is small. This workaround is needed with increased
  8. accuracy of connection timeout introduced in previous version, as
  9. with lower accuracy (v0.9.73 and before) these jumpbacks were
  10. unnoticeable.
  11. Other changes: fixed some compiler, Makefile, and configure
  12. warnings on specific platforms; one test further improved.
  13. -- Evgeny Grin (Karlson2k)
  14. Sun 19 Dec 2021 18:30:00 MSK
  15. Released GNU libmicrohttpd 0.9.74
  16. This release brings a lot of fixes and improvements, and
  17. important new features.
  18. The most significant addition is the new experimental
  19. implementation of WebSockets contributed by David Gausmann. This
  20. implementation is not fully tested yet so currently it is disabled
  21. by default.
  22. Other changes include a lot of improvements and clarifications
  23. in doxy comments in microhttpd.h header file, improved compliance
  24. with the RFC HTTP specifications, the new implementation of reply
  25. header forming, the new implementation of request chunked encoding
  26. parsing, new automatic error replies, internal optimisations, and
  27. many important fixes, including fixes for long-standing bugs.
  28. More detailed list of notable changes:
  29. API changes:
  30. + Added new function MHD_get_reason_phrase_len_for().
  31. + Added MHD_CONNECTION_INFO_HTTP_STATUS type of information
  32. queried by MHD_get_connection_info().
  33. + Added new response flag MHD_RF_SEND_KEEP_ALIVE_HEADER to force
  34. sending of "keep-alive" header even if not required by RFC.
  35. + Added new response creation function
  36. MHD_create_response_from_buffer_with_free_callback_cls() with
  37. custom cleanup callback.
  38. + Added new response flag MHD_RF_HTTP_1_0_COMPATIBLE_STRICT with
  39. the same functionality as existing MHD_RF_HTTP_VERSION_1_0_ONLY
  40. flag. The old flag will be deprecated.
  41. + Added new response flag MHD_RF_HTTP_1_0_SERVER with the same
  42. functionality as existing MHD_RF_HTTP_VERSION_1_0_RESPONSE flag.
  43. The old flag will be deprecated.
  44. New features:
  45. + Added experimental WebSockets extension with separate header.
  46. Disabled by default as it is not fully tested yet.
  47. + Added '--enable-sanitizers[=address,undefined,leak,user-poison]'
  48. configure parameter (instead of '--enable-sanitizer'),
  49. implemented custom memory poisoning for memory pools.
  50. Improvements and enhancements:
  51. * Doxy function descriptions was corrected, clarified, extended,
  52. and improved. Now it should be much easier to learn MHD just by
  53. reading the headers.
  54. * Completely rewritten reply header forming. New implementation is
  55. more robust, simpler maintainable and expandable, and better
  56. follows RFC HTTP specifications.
  57. * Performance improvements: now HTTP version and request method are
  58. decoded one time only (previously MHD used string comparison many
  59. times during processing the data).
  60. * Rewritten request chunked payload decoding. The new
  61. implementation better conforms to the HTTP RFC, detects format
  62. problems earlier, replies to the clients with description of
  63. detected problems, handles untypical (but syntactically correct)
  64. values properly.
  65. * Added special replies for wrong/unsupported HTTP versions in
  66. requests, broken HTTP chunked encoding in requests,
  67. * As required by HTTP RFC, added automatic error replies if client
  68. used broken chunked encoding, too large chunk size, too large
  69. payload size, or broken Content-Length header.
  70. * Optimized connection's memory pool handling.
  71. * Changed timeout precision from one second to one millisecond.
  72. * Added some checks for incorrect user data, reporting problems in
  73. MHD log.
  74. * Improved performance of hash calculations functions by using
  75. compiler built-ins (if available).
  76. * Implemented SHA-1 calculations (required for WebSockets).
  77. * Added universal MSVC project that works with any (sufficiently
  78. new) version of MSVC.
  79. * Developed simple HTTP client to test MHD under very special
  80. conditions.
  81. * Implemented 45 new tests.
  82. * Improved existing tests to test more aspects of MHD.
  83. * Added check for correct results of system and libcurl functions.
  84. * Response headers are checked during forming of responses.
  85. * HTTPS tests were improved.
  86. * Added rebuild on W32 of all required files if files are missing.
  87. * Many internal optimisations and improvements.
  88. Functionality changes:
  89. * Keep-alive header is omitted by default for HTTP/1.1 connections.
  90. Use of header can be enforced by response flag.
  91. * Chunked encoding is used for HTTP/1.1 non-keep-alive connections
  92. for responses with unknown size. Previously MHD used "indication
  93. of the end of the response by closing connection" in such cases,
  94. however it is not correct for HTTP/1.1 connections as per HTTP
  95. RFC.
  96. * As required by HTTP RFC, use HTTP/1.1 version instead of HTTP/1.0
  97. in reply headers when client is HTTP/1.0 . HTTP/1.0 version can
  98. be enforced by response flag.
  99. * User response headers are used in replies in the same order as
  100. was added by application.
  101. * Allowed tab characters in response header values.
  102. * All custom "Connection:" response headers are automatically
  103. combined into single "Connection:" header.
  104. * "keep-alive" token silently dropped from custom "Connection:"
  105. response header. "Keep-alive" cannot be enforced and used
  106. automatically if possible.
  107. * Allow tab character in custom response header value.
  108. * Disallow space character in custom response header value.
  109. * Do not allow responses with 1xx codes for HTTP/1.0 requests.
  110. * Detected and reported incorrect "Upgrade" responses.
  111. * W32 targets are changed to Vista+ by default. XP is supported
  112. still.
  113. Fixes:
  114. # Fixed short busy-waiting (up to one second) when connection is
  115. going to be expired and closed.
  116. # Fixed handling of errors during start of new connection, fixed
  117. inability to accept new connections in thread-per-connection mode
  118. due to the missing decrement of number of daemon's connections if
  119. start of new thread is failed.
  120. # Fixed incorrect parsing of LFLF, LFCR, CRCR, and bare CR as
  121. single linefeed in request header and request chunked payload.
  122. Now only CRLF or bare LF are recognized as linefeed.
  123. # Fixed response chunked encoding handling. Now it works properly
  124. with non-keep-alive connection, with fixed size replies (if
  125. chunked was enforced by header), and in other situations.
  126. # Other fixes for chunked replies.
  127. # Fixed handling of custom connection timeout in thread-per-
  128. connection mode.
  129. # Fixed wrongly used MHD_REQUEST_TERMINATED_COMPLETED_OK code for
  130. application notification when MHD_REQUEST_TERMINATED_WITH_ERROR
  131. code must be used.
  132. # Fixed code MHD_REQUEST_TERMINATED_READ_ERROR not reported (code
  133. MHD_REQUEST_TERMINATED_WITH_ERROR was incorrectly used instead).
  134. # Fixed handling of request chunked encoding with untypical
  135. formatting.
  136. # Fixed processing of last part of hex-encoded values under
  137. certain conditions.
  138. # Fixed value returned for MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE.
  139. # Fixed returned value for MHD_FEATURE_AUTOSUPPRESS_SIGPIPE on W32,
  140. now it is MHD_YES as W32 does not need SIGPIPE suppression.
  141. # Fixed portability of bitwise NOT for enums values.
  142. # Fixed SHA-256 and MD5 calculations with unaligned data.
  143. # Fixed incorrect caseless matching for HTTP version.
  144. # Fixed incorrect caseless matching for request method.
  145. # Fixed compatibility with old GnuTLS versions.
  146. # Fixed compiler warnings on 32-bits platforms.
  147. # Fixed blocking sockets setting in tests and examples for W32.
  148. # Fixed examples to really use libmagic if present.
  149. # HTTPS tests were fixed.
  150. # Fixed libcurl test with case-insensitive match for HTTP methods,
  151. method names must use case-sensitive match.
  152. # Fixed tests compatibility with old libcurl versions.
  153. # Fixed build on W32 with llvm-dlltool (this tool is too
  154. oversimplified)
  155. -- Evgeny Grin (Karlson2k)
  156. Sun 25 Apr 2021 14:00:00 MSK
  157. Released GNU libmicrohttpd 0.9.73
  158. This release brings new features, improvements, and a few fixes.
  159. The most important addition is the new function for vector-backed
  160. responses, based on the patch contributed by NASA engineers.
  161. Other changes include compatibility with autoconf 2.70+, improved
  162. testsuite compatibility with CI systems, fixed and improved MSVC
  163. builds, and implementation of ALPN support.
  164. More detailed list of notable changes:
  165. API changes:
  166. + Added new function MHD_create_response_from_iovec(), based on the
  167. patch provided by Lawrence Sebald and Damon N. Earp from NASA.
  168. + Added MHD_OPTION_SIGPIPE_HANDLED_BY_APP daemon option.
  169. + Added new function MHD_run_wait().
  170. + Added MHD_OPTION_TLS_NO_ALPN to disable usage of ALPN even if
  171. it is supported by TLS library.
  172. New features:
  173. + Added '--enable-heavy-tests' configure parameter (disabled by
  174. default).
  175. + Implemented support for ALPN.
  176. Improvements and enhancements:
  177. * Return timeout of zero also for connections awaiting cleanup.
  178. * Compatibility with autoconf >=2.70, used new autoconf features.
  179. * Warn user when custom logger option is not the first option.
  180. * Added information to the header about minimal MHD version when
  181. particular symbols were introduced.
  182. * Updated test certificates to be compatible with modern browsers.
  183. * Added on-fly detection of UNIX domain sockets and pipes, MHD does
  184. not try to use TCP/IP-specific socket options on them.
  185. * Report more detailed error description in the MHD log for send
  186. and receive errors.
  187. * Enabled bind port autodetection for MSVC builds.
  188. Fixes:
  189. # Fix PostProcessor to always properly stop iteration when
  190. application callback tells it to do so.
  191. # Fixed MD5 digest authorization broken when compiled without
  192. variable length arrays support (notably with MSVC).
  193. # Fixed detection of type of send errors on W32.
  194. -- Evgeny Grin (Karlson2k)
  195. Mon 28 Dec 2020 21:36:00 MSK
  196. Released GNU libmicrohttpd 0.9.72
  197. This release is mostly a bugfix release, with greatly improved
  198. compatibility with various OSes/kernels, including FreeBSD, Windows,
  199. OpenBSD, NetBSD, Darwin (macOS), Solaris. Performance is improved,
  200. especially with HTTPS connections and stay-alive HTTP connections.
  201. Notable changes since version 0.9.71:
  202. API changes:
  203. + New function MHD_create_response_from_pipe()
  204. Improvements and enhancements:
  205. * Fully rewritten code for buffering/pushing from kernel network buffers
  206. for compatibility with various OSes. Reduced number of additional
  207. sys-calls, network is better utilized, responses are delivered faster.
  208. * Restored optimal sendfile() usage on FreeBSD.
  209. * MHD now takes care about SIGPIPE handling by blocking it in internal
  210. threads and avoiding functions (like sendfile()) that could generate
  211. SIGPIPE when blocking of this signal is not possible.
  212. Fixes:
  213. # Fixed crash in PostProcessor.
  214. # Fixed several resources leaks in corner cases.
  215. # Improved thread sync, thread safety and fixed one use-after-free under
  216. special conditions during stopping of daemon.
  217. # Updated HTTP status codes, header names and methods from the
  218. registries.
  219. # Fixed functioning without listen socket and with internal threads.
  220. # Fixed streaming of chunked responses for both HTTP and HTTPS.
  221. # Various compatibility fixes.
  222. -- Evgeny Grin (Karlson2k)
  223. Tue Jan 9 20:52:48 MST 2007
  224. Project posted.