Skip to content

Commit b6d0976

Browse files
author
Ubuntu
committed
Update to libmicrohttpd 0.9.52
1 parent bd08772 commit b6d0976

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Wed Feb 12 13:14:01 2017 +0000
2+
Updated to libmicrohttpd 0.9.52
3+
14
Wed Jul 13 02:23:11 2016 +0100
25
Fixed problems with large payloads
36
Fixed memory leak in http_response_ptr

configure.ac

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
AC_PREREQ(2.57)
2323
m4_define([libhttpserver_MAJOR_VERSION],[0])dnl
24-
m4_define([libhttpserver_MINOR_VERSION],[11])dnl
25-
m4_define([libhttpserver_REVISION],[1])dnl
24+
m4_define([libhttpserver_MINOR_VERSION],[12])dnl
25+
m4_define([libhttpserver_REVISION],[0])dnl
2626
m4_define([libhttpserver_PKG_VERSION],[libhttpserver_MAJOR_VERSION.libhttpserver_MINOR_VERSION.libhttpserver_REVISION])dnl
2727
m4_define([libhttpserver_LDF_VERSION],[libhttpserver_MAJOR_VERSION:libhttpserver_MINOR_VERSION:libhttpserver_REVISION])dnl
2828
AC_INIT([libhttpserver], libhttpserver_PKG_VERSION, [electrictwister2000@gmail.com])
@@ -92,17 +92,17 @@ AC_CHECK_HEADER([gnutls/gnutls.h],[have_gnutls="yes"],[AC_MSG_WARN("gnutls/gnutl
9292
# Checks for libmicrohttpd
9393
AC_CHECK_HEADER([microhttpd.h],
9494
AC_CHECK_LIB([microhttpd], [MHD_get_fdset2],
95-
[AC_MSG_CHECKING([for libmicrohttpd >= 0.9.37])
95+
[AC_MSG_CHECKING([for libmicrohttpd >= 0.9.52])
9696
AC_COMPILE_IFELSE(
9797
[AC_LANG_SOURCE([
9898
#include <microhttpd.h>
99-
#if (MHD_VERSION < 0x0093700)
100-
#error needs at least version 0.9.37
99+
#if (MHD_VERSION < 0x00095102)
100+
#error needs at least version 0.9.52
101101
#endif
102102
int main () { return 0; }
103103
])],
104104
[],
105-
[AC_MSG_ERROR("libmicrohttpd is too old - install libmicrohttpd >= 0.9.37")]
105+
[AC_MSG_ERROR("libmicrohttpd is too old - install libmicrohttpd >= 0.9.52")]
106106
)
107107
],
108108
[AC_MSG_ERROR(["libmicrohttpd not found"])]

src/http_utils.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ const int http_utils::http_payment_required = MHD_HTTP_PAYMENT_REQUIRED;
7979
const int http_utils::http_forbidden = MHD_HTTP_FORBIDDEN;
8080
const int http_utils::http_not_found = MHD_HTTP_NOT_FOUND;
8181
const int http_utils::http_method_not_allowed = MHD_HTTP_METHOD_NOT_ALLOWED;
82-
const int http_utils::http_method_not_acceptable =
83-
MHD_HTTP_METHOD_NOT_ACCEPTABLE;
82+
const int http_utils::http_method_not_acceptable = MHD_HTTP_NOT_ACCEPTABLE;
8483
const int http_utils::http_proxy_authentication_required =
8584
MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED;
8685
const int http_utils::http_request_timeout = MHD_HTTP_REQUEST_TIMEOUT;

src/httpserver/http_utils.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class http_utils
7979
#if defined(__MINGW32__) || defined(__CYGWIN32__)
8080
INTERNAL_SELECT = MHD_USE_SELECT_INTERNALLY | MHD_USE_POLL,
8181
#else
82-
INTERNAL_SELECT = MHD_USE_SELECT_INTERNALLY | MHD_USE_EPOLL_LINUX_ONLY | MHD_USE_EPOLL_TURBO,
82+
INTERNAL_SELECT = MHD_USE_SELECT_INTERNALLY | MHD_USE_EPOLL | MHD_USE_EPOLL_TURBO,
8383
#endif
8484
THREAD_PER_CONNECTION = MHD_USE_THREAD_PER_CONNECTION | MHD_USE_POLL
8585
};

0 commit comments

Comments
 (0)