Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | add ability to use socketspair instead of pipe, implement W32 ↵ | Evgeny Grin (Karlson2k) | 2014-02-18 |
| | | | | | | pipe/socketspair emulation, implement MHD_SYS_select_ configure.ac: add "--disable-pipes" option | ||
* | add platform abstraction for errno and strerror, check EWOULDBLOCK ↵ | Evgeny Grin (Karlson2k) | 2014-02-18 |
| | | | | additionally to EAGAIN | ||
* | Replace CLOSE() with MHD_socket_close_() for sockets | Evgeny Grin (Karlson2k) | 2014-02-18 |
| | |||
* | Implement MHD_socket, MHD_INVALID_SOCKET | Evgeny Grin (Karlson2k) | 2014-02-18 |
| | |||
* | Karlson2k: fix MHD_get_fdset with defined DEBUG_CONNECT | Christian Grothoff | 2014-02-15 |
| | |||
* | refactoring and cleanup of make_nonblocking_noninheritable(), | Christian Grothoff | 2014-02-12 |
| | | | | | | based on suggestions by Karlson2k <k2k@narod.ru> (but not exactly) | ||
* | From: Karlson2k <k2k@narod.ru> | Christian Grothoff | 2014-02-12 |
| | | | | | | | | Date: Wed, 12 Feb 2014 17:34:05 +0400 Subject: [PATCH] MHD_accept_connection small refactoring: choose at compile time instead of run time | ||
* | clarification to documentation by Evgeny Grin | Christian Grothoff | 2014-02-11 |
| | |||
* | Patch from Karlson2k: fix MHD_get_fdset to accept NULL as max_fd, as ↵ | Christian Grothoff | 2014-02-11 |
| | | | | | | described in doxy | ||
* | -cosmetic patch from Evgeny Grin | Christian Grothoff | 2014-02-08 |
| | |||
* | Add decl check for _stati64 (required for newer plibc) | LRN | 2014-01-27 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||
* | Luke-Jr wrote: | Christian Grothoff | 2014-01-22 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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))) && | ||
* | -hide symbols | Christian Grothoff | 2013-12-24 |
| | |||
* | -work around compiler warnings | Christian Grothoff | 2013-12-22 |
| | |||
* | add support for SNI | Christian Grothoff | 2013-12-21 |
| | |||
* | remove debug message | Matthias Wachs | 2013-12-20 |
| | |||
* | fixing #3179 | Christian Grothoff | 2013-12-09 |
| | |||
* | -fix tests for MHD_USE_SUSPEND_RESUME | Christian Grothoff | 2013-12-03 |
| | |||
* | -newline | Christian Grothoff | 2013-12-03 |
| | |||
* | Adding Matt Holiday's fixes to suspend/resume logic | Christian Grothoff | 2013-12-03 |
| | | | | | (plus documentation updates). | ||
* | -fix shutdown race for wpipe on non-Linux systems | Christian Grothoff | 2013-11-26 |
| | |||
* | -fixes to MHD_suspend_connection | Christian Grothoff | 2013-11-25 |
| | |||
* | experimental code to support flow control for connections via ↵ | Christian Grothoff | 2013-10-24 |
| | | | | MHD_suspend_connection and MHD_resume_connection | ||
* | typo | Christian Grothoff | 2013-09-23 |
| | |||
* | fully initialze modern gcrypt in MHD_init, only use thread initialization ↵ | Christian Grothoff | 2013-09-23 |
| | | | | with legacy libgcrypt, update tests accordingly | ||
* | -only check if use pipe is set, as on FreeBSD FD_SETSIZE is a signed int... | Christian Grothoff | 2013-09-11 |
| | |||
* | -doxygen fixes | Christian Grothoff | 2013-09-07 |
| | |||
* | set IPV6_V6ONLY correctly when MHD_USE_IPv6 but not MHD_USE_DUAL_STACK | Matthias Wachs | 2013-09-04 |
| | |||
* | fix epoll use after free | Christian Grothoff | 2013-09-02 |
| | |||
* | -setname_np does not exist on FreeBSD | Christian Grothoff | 2013-09-01 |
| | |||
* | -typo | Christian Grothoff | 2013-09-01 |
| | |||
* | -doxygen fixes | Christian Grothoff | 2013-09-01 |
| | |||
* | -fix ftbfs on freebsd | Christian Grothoff | 2013-09-01 |
| | |||
* | towards fixing #3008 | Christian Grothoff | 2013-08-30 |
| | |||
* | fix #3007 | Christian Grothoff | 2013-08-28 |
| | |||
* | -do not run epoll tests if epoll was disabled, even on linux | Christian Grothoff | 2013-08-28 |
| | |||
* | making build tolerate missing SOCK_NONBLOCK/EPOLL_CLOEXEC (older glibc) | Christian Grothoff | 2013-08-27 |
| | |||
* | -more doxygen improvements | Christian Grothoff | 2013-08-22 |
| | |||
* | W32: shutdown a socket for writing before closing it | LRN | 2013-08-14 |
| | | | | | | | | Turns out that closing a socket while having unread data in recv buffer causes winsock to terminate the connection without sending any pending data. This is fixed by shutting down socket for writing before closing it. | ||
* | Use socketpair to wake up listenthread on W32 | LRN | 2013-08-12 |
| | |||
* | -removing bogus #ifdefs | Christian Grothoff | 2013-08-11 |
| | |||
* | attempted fix for #2983 | Christian Grothoff | 2013-08-10 |
| | |||
* | address #2984 | Christian Grothoff | 2013-08-10 |
| | |||
* | -disable use of shutdown on W32 | Christian Grothoff | 2013-08-10 |
| | |||
* | -reverting removal of Plibc, select on pipes problem is critial | Christian Grothoff | 2013-08-07 |
| | |||
* | Part 2 of 2 - Remove and replace PlibC macros with native function calls. | Christian Grothoff | 2013-08-07 |
| | |||
* | Fix compiling for systems without SOCK_NONBLOCK | LRN | 2013-08-02 |
| | |||
* | -fix #2968 | Christian Grothoff | 2013-07-28 |
| | |||
* | microhttpd: put "#if EPOLL_SUPPORT" everywhere, so compilation can succeed ↵ | Andrey Uzunov | 2013-07-21 |
| | | | | even when it is disabled | ||
* | -removing bad printf | Christian Grothoff | 2013-07-20 |
| |