Commit Graph
698 Commits
Author SHA1 Message Date
Christian Grothoff d71165ed3a second attempt to properly commit patch for #3392 2014-05-28 13:48:57 +00:00
Christian Grothoff 07e0a5ea0a releasing 0.9.36 2014-05-25 18:20:18 +00:00
Christian Grothoff 14a0065869 never notify twice 2014-05-17 04:47:33 +00:00
Christian Grothoff 51da5739fe -fix #3397 2014-05-13 16:26:49 +00:00
Christian Grothoff cb4bd812c4 Bernd Kuhls <berndkuhls@hotmail.com> wrote:
Hi,

the latest release added

AC_CHECK_FILE([$with_gnutls/include/gnutls/gnutls.h],

to configure.ac which is not cross-compile aware, for the precise error 
message have a look at the bottom of 
http://autobuild.buildroot.net/results/cb2/cb2cec1295a40667a3c21060864dd0e65a
312c3e/build-end.log

The following patch fixes the problem

--- configure.ac       2014-05-02 20:38:40.000000000 +0200
+++ configure.ac   2014-05-04 09:17:00.000000000 +0200
@@ -639,8 +639,7 @@
         SAVE_CPPFLAGS="$CPPFLAGS"
         LDFLAGS="-L$with_gnutls/lib $LDFLAGS"
         CPPFLAGS="-I$with_gnutls/include $CPPFLAGS"
-        AC_CHECK_FILE([$with_gnutls/include/gnutls/gnutls.h],
-          [AC_CHECK_HEADERS([gnutls/gnutls.h],
+          AC_CHECK_HEADERS([gnutls/gnutls.h],
             [AC_CHECK_LIB([gnutls], [gnutls_priority_set],
               [
                 GNUTLS_CPPFLAGS="-I$with_gnutls/include"
@@ -648,7 +647,7 @@
                 GNUTLS_LIBS="-lgnutls"
                 AC_CHECK_LIB([gnutls], [gnutls_load_file], [AC_CHECK_LIB
([gnutls], [gnutls_privkey_import_x509_raw], [have_gnutls_sni=yes])])
                 have_gnutls=yes
-              ])])])
+              ])])
         AS_IF([test "x$have_gnutls" != "xyes"], [AC_MSG_ERROR([can't find 
usable libgnutls at specified prefix $with_gnutls])])
         LDFLAGS="$SAVE_LDFLAGS"
         CPPFLAGS="$SAVE_CPPFLAGS"

Regards, Bernd
2014-05-04 09:06:27 +00:00
Christian Grothoff 7231b7f830 fix #3391 2014-05-02 18:43:17 +00:00
Christian Grothoff 1bd97426ba fix rare epoll/resume issue, also simplifying logic 2014-05-02 18:37:35 +00:00
Christian Grothoff 312d11ec19 fix #3392 as suggested by reporter 2014-05-02 18:23:58 +00:00
Christian Grothoff 14ca1719e9 fix #3371 2014-04-10 07:43:05 +00:00
Evgeny Grin (Karlson2k) 2bffe00f07 Added ability to use native W32 threads, added --with-threads=LIB configure parameter 2014-04-08 14:46:06 +00:00
Christian Grothoff ca3a7d621c add MHD_OPTION_HTTPS_MEM_DHPARAMS to support PFS 2014-04-07 11:27:18 +00:00
Evgeny Grin (Karlson2k) e1fbd3e574 ChangeLog update 2014-04-01 06:16:22 +00:00
Evgeny Grin (Karlson2k) 36394bd3bd Fixed typo in ChangeLog 2014-03-29 15:17:23 +00:00
Evgeny Grin (Karlson2k) 52a6587591 Added new function MHD_is_feature_supported() 2014-03-29 15:13:33 +00:00
Evgeny Grin (Karlson2k) 3bc4813f52 Increased FD_SETSIZE for W32, added MHD_get_fdset2 2014-03-27 13:49:19 +00:00
Evgeny Grin (Karlson2k) bb8f952bef Fix limiting by IPv6 address 2014-03-25 11:55:32 +00:00
Evgeny Grin (Karlson2k) 582da7168a more checks for FD_SETSIZE, implemented check for FD_SETSIZE on W32 2014-03-25 08:05:52 +00:00
Evgeny Grin (Karlson2k) 5988eb9204 Update ChangeLog 2014-03-05 13:21:23 +00:00
Evgeny Grin (Karlson2k) b33a2d2436 ChangeLog and AUTHORS update 2014-02-26 17:55:54 +00:00
Christian Grothoff 756e2da381 version bumping 2014-02-24 22:33:49 +00:00
Evgeny Grin (Karlson2k) a9474fdab2 Remove plibc leftover, update ChangeLog and docs 2014-02-18 20:05:14 +00:00
Christian Grothoff 5ae9cc7f06 size_t vs. int fixes by Evgeny Grin, plus some additional fixes by CG 2014-02-08 14:09:04 +00:00
Christian Grothoff dd902f337b Luke-Jr wrote:
MHD_USE_DUAL_STACK in libmicrohttpd currently just *inhibits setting* the 
IPV6_V6ONLY socket option, but per Microsoft's documentation 
http://msdn.microsoft.com/en-us/library/windows/desktop/bb513665(v=vs.85).aspx
the default on Windows is that this is enabled, thus MHD_USE_DUAL_STACK will 
not work (since it leaves the default). libmicrohttpd should probably just 
unconditionally set IPV6_V6ONLY to the desired value when the option is 
available.

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 0a33b77..3cbf28e 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -3493,8 +3493,7 @@ MHD_start_daemon_va (unsigned int flags,
 	}
       daemon->socket_fd = socket_fd;
 
-      if ( (0 != (flags & MHD_USE_IPv6)) &&
-	   (MHD_USE_DUAL_STACK != (flags & MHD_USE_DUAL_STACK)) )
+      if (0 != (flags & MHD_USE_IPv6))
 	{
 #ifdef IPPROTO_IPV6
 #ifdef IPV6_V6ONLY
@@ -3503,10 +3502,11 @@ MHD_start_daemon_va (unsigned int flags,
 	     and may also be missing on older POSIX systems; good luck if you have 
any of those,
 	     your IPv6 socket may then also bind against IPv4 anyway... */
 #ifndef WINDOWS
-	  const int on = 1;
+	  const int
 #else
-	  const char on = 1;
+	  const char
 #endif
+		 on = (MHD_USE_DUAL_STACK != (flags & MHD_USE_DUAL_STACK));
 	  if ( (0 > SETSOCKOPT (socket_fd,
 				IPPROTO_IPV6, IPV6_V6ONLY,
 				&on, sizeof (on))) &&
2014-01-22 08:47:48 +00:00
Christian Grothoff e4e05d001c enable use of keep-alive with http 1.0 if explicitly requested by the client 2014-01-01 20:43:44 +00:00
Christian Grothoff a372d23b4e -hide symbols 2013-12-24 11:28:30 +00:00
Christian Grothoff 324e9852db -work around compiler warnings 2013-12-22 13:55:17 +00:00
Christian Grothoff 33affa9d1e -releasing 0.9.33 2013-12-21 16:30:55 +00:00
Christian Grothoff 9889fd9eee add support for SNI 2013-12-21 16:28:54 +00:00
Christian Grothoff 00a9277f49 -fix postexample 2013-12-21 16:27:06 +00:00
Christian Grothoff e82e13bba5 fixing #3179 2013-12-09 20:43:13 +00:00
Christian Grothoff 38fad29b45 -fix build issue without HTTPS and compiler warnings, as reported by Dilyan Palauzov
on the mailinglist
2013-12-06 23:45:41 +00:00
Christian Grothoff d9999d6650 -version bumps and chlogs for 0.9.32 release 2013-12-03 20:33:47 +00:00
Christian Grothoff 04ca76e78e Adding Matt Holiday's fixes to suspend/resume logic
(plus documentation updates).
2013-12-03 20:11:34 +00:00
Christian Grothoff 4245c6e9c3 eliminate theoretical stack overflow 2013-11-29 19:18:51 +00:00
Christian Grothoff 8ba82afc4b -fix shutdown race for wpipe on non-Linux systems 2013-11-26 00:28:14 +00:00
Christian Grothoff 74e0a68567 -fixes to MHD_suspend_connection 2013-11-25 21:51:08 +00:00
Christian Grothoff 3fb38e6948 -fix post processor, expanded test suite to cover garbage before payload 2013-10-30 08:35:28 +00:00
Christian Grothoff 57b91a0399 -improve POST processing performance 2013-10-27 14:22:22 +00:00
Christian Grothoff 8e6b1e7899 experimental code to support flow control for connections via MHD_suspend_connection and MHD_resume_connection 2013-10-24 08:41:04 +00:00
Christian Grothoff a79c58be3d -forgotten commit for 0.9.31 release 2013-10-24 08:39:55 +00:00
Christian Grothoff 9c2700afc5 check CLOCK_MONOTONIC is defined 2013-09-23 18:34:19 +00:00
Christian Grothoff 945c5990ea -chlog 2013-09-23 12:15:30 +00:00
Christian Grothoff 39b664030d log 2013-09-20 15:02:02 +00:00
Christian Grothoff e22f196d71 release lock earlier 2013-09-18 16:34:17 +00:00
Christian Grothoff 1fb16b7853 signal non-error termination properly if stream was simply terminated by client 2013-09-18 16:30:35 +00:00
Christian Grothoff fe4fa4d3c2 add another standard header 2013-09-18 13:13:59 +00:00
Christian Grothoff 017c372418 also pass MHD connection handle in URI callback, needed for GNUnet 2013-09-17 19:33:20 +00:00
Christian Grothoff e10685804a check openssl symbols for libmicrospdy 2013-09-06 08:01:14 +00:00
Matthias Wachs c82b4ff99a changelog update 2013-09-04 15:25:13 +00:00
Christian Grothoff 14873b8fa8 releasing 0.9.30 2013-09-02 21:10:11 +00:00