Commit Graph
4924 Commits
Author SHA1 Message Date
Christian Grothoff ca6db090e6 -remove empty dir 2014-02-18 18:51:39 +00:00
Christian Grothoff d7f467816d -remove m4 macro to check for plibc 2014-02-18 18:50:04 +00:00
Christian Grothoff cde2986cbf -ignore .deps 2014-02-18 18:48:52 +00:00
Christian Grothoff e385fd5c0a -fix compiler warning 2014-02-18 18:47:10 +00:00
Evgeny Grin (Karlson2k) 84c97c74e0 testcurl/test_quiesce.c - port to W32 2014-02-18 18:41:21 +00:00
Evgeny Grin (Karlson2k) 29c592c1cb fix configure warnings under cygwin 2014-02-18 18:41:12 +00:00
Evgeny Grin (Karlson2k) bda741a432 Don't allow compile with unsupported Cygwin configuration 2014-02-18 18:41:07 +00:00
Evgeny Grin (Karlson2k) ceae73d954 Remove PlibC files 2014-02-18 18:40:59 +00:00
Evgeny Grin (Karlson2k) 41e5c4888a Remove PlibC from autotools files 2014-02-18 18:40:50 +00:00
Evgeny Grin (Karlson2k) f0316a499c Remove PlibC from platform.h 2014-02-18 18:40:24 +00:00
Evgeny Grin (Karlson2k) 9afe92d579 Reverse OpenSSL <-> GnuTLS check 2014-02-18 18:40:16 +00:00
Evgeny Grin (Karlson2k) 8b93f7cf96 Replace plibc_init() and plibc_shutdown() 2014-02-18 18:40:06 +00:00
Evgeny Grin (Karlson2k) 41ea8b14cd Remove PlibC wrappers and macros 2014-02-18 18:39:59 +00:00
Evgeny Grin (Karlson2k) 93ed5e5d66 Implement MHD_W32_random(), replace RANDOM() -> MHD_random_() 2014-02-18 18:39:43 +00:00
Evgeny Grin (Karlson2k) 8b28e693b2 add sleep() and usleep() replacement for W32 2014-02-18 18:39:31 +00:00
Evgeny Grin (Karlson2k) b7dabd9efb remove inet_pton() from tests, use real IPv6 loopback for test 2014-02-18 18:39:10 +00:00
Evgeny Grin (Karlson2k) d45a402420 test_get_sendfile.c - remove DIR_SEPARATOR_STR (W32 works fine with forwardslashes) 2014-02-18 18:38:58 +00:00
Evgeny Grin (Karlson2k) eec7ef1b87 gmtime_r() replacement on W32, add error check in get_date_string() 2014-02-18 18:38:50 +00:00
Evgeny Grin (Karlson2k) 1acde3cb8e add ability to use socketspair instead of pipe, implement W32 pipe/socketspair emulation, implement MHD_SYS_select_
configure.ac: add "--disable-pipes" option
2014-02-18 18:38:41 +00:00
Evgeny Grin (Karlson2k) 558d8ae997 fix autoconf warning 2014-02-18 18:38:27 +00:00
Evgeny Grin (Karlson2k) c443fe60fd add platform abstraction for errno and strerror, check EWOULDBLOCK additionally to EAGAIN 2014-02-18 18:38:21 +00:00
Evgeny Grin (Karlson2k) 4e0abfce9e Replace CLOSE() with MHD_socket_close_() for sockets 2014-02-18 18:38:04 +00:00
Evgeny Grin (Karlson2k) c311027f28 Implement MHD_socket, MHD_INVALID_SOCKET 2014-02-18 18:37:48 +00:00
Evgeny Grin (Karlson2k) cc5f66001e memorypool.c: use native memory function for W32 2014-02-18 18:37:13 +00:00
Christian Grothoff e657e19644 Karlson2k: fix AM_CPPFLAGS vs AM_CFLAGS usage 2014-02-18 07:09:20 +00:00
Christian Grothoff f557e2ad50 Karlson2k: fix MHD_get_fdset with defined DEBUG_CONNECT 2014-02-15 10:13:05 +00:00
Christian Grothoff cd967c6e57 refactoring and cleanup of make_nonblocking_noninheritable(),
based on suggestions by Karlson2k <k2k@narod.ru>
(but not exactly)
2014-02-12 16:44:27 +00:00
Christian Grothoff 519d121f91 From: Karlson2k <k2k@narod.ru>
Date: Wed, 12 Feb 2014 17:34:05 +0400
Subject: [PATCH] MHD_accept_connection small refactoring: choose at compile
 time instead of run time
2014-02-12 16:38:18 +00:00
Christian Grothoff 3de91d17fd From: Karlson2k <k2k@narod.ru>
Date: Wed, 12 Feb 2014 14:19:34 +0400
Subject: [PATCH] Fix _MHD_EXTERN if "platform.h" is included in external file
2014-02-12 16:36:42 +00:00
Christian Grothoff da3b07ecb8 clarification to documentation by Evgeny Grin 2014-02-11 18:43:17 +00:00
Christian Grothoff acfaee5a4f Patch from Karlson2k: fix MHD_get_fdset to accept NULL as max_fd, as described in
doxy
2014-02-11 16:44:27 +00:00
Christian Grothoff c07b4f1057 -doxygen, style and indentation fixes to microspdy.h 2014-02-08 14:22:22 +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 a4e4998a29 -cosmetic patch from Evgeny Grin 2014-02-08 14:02:05 +00:00
Christian Grothoff e0c9a49f61 Karlson2k: fix makefiles: src/daemon -> src/microhttpd 2014-02-04 13:51:27 +00:00
Christian Grothoff 8251a574fb Karlson2k: Fix win32 cURL tests 2014-02-04 13:51:06 +00:00
LRN 0d8aeae6df Add decl check for _stati64 (required for newer plibc)
Remove redundant -no-undefined (it's part of mandatory MHD_LIB_LDFLAGS
now)

Remove --export-all-symbols for W32 (visibility is used instead)
Add -fvisibility=hidden configure check (shamelessly borrowed from GTK)

Remove unused -export-symbols-regex check

Define _MHD_EXTERN to "extern" if it's undefined (this is what clients
get)

Mark all public functions with _MHD_EXTERN

Remove HIDDEN_SYMBOL definition

Don't mark hidden functions with HIDDEN_SYMBOL (everything that is not
explicitly public is hidden by default now)

Change constructor macros a bit to apply _MHD_EXTERN to them cleanly

Use HIDDEN_VISIBILITY_CFLAGS when compiling libraries

Remove EXPORT.sym files, don't mention them in EXTRA_DIST, don't use
them to define a list of exported functions

Remove redundant -no-undefined, make sure only the one that gets into
Makefiles directly remains, remove -Wl prefix from it
2014-01-27 06:59:02 +00:00
Christian Grothoff 34644b55bb use -Wl on -no-undefined as it is a linker option: 2014-01-26 23:17:36 +00:00
Christian Grothoff 73659c8e20 -bump 2014-01-22 08:48:22 +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 5534659f20 -grammar 2014-01-13 15:15:18 +00:00
Christian Grothoff 3d8a80474e -version bump 2014-01-01 20:51:45 +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
Andrey Uzunov cb11cac74d mhd2spdy: usage info 2013-12-28 20:45:25 +00:00
Andrey Uzunov c81afd7682 spdy: fixed bug when adding header with NULL value 2013-12-28 18:43:28 +00:00
Christian Grothoff d064f75e0d -fix dist by adding missing files 2013-12-28 14:40:26 +00:00
Christian Grothoff d5c3be3703 -ignore 2013-12-24 14:46:02 +00:00
Christian Grothoff 0feaaea8b0 -re-adding logic to restrict exported symbols via linker, unsure how/when that disappeared 2013-12-24 14:20:38 +00:00
Christian Grothoff e25c43fcc0 -hiding a few more 2013-12-24 11:32:11 +00:00
Christian Grothoff 9cc7bd0c77 -missing include 2013-12-24 11:29:09 +00:00