aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
Commit message (Collapse)AuthorAge
* 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 socketsEvgeny Grin (Karlson2k)2014-02-18
|
* Implement MHD_socket, MHD_INVALID_SOCKETEvgeny Grin (Karlson2k)2014-02-18
|
* Karlson2k: fix MHD_get_fdset with defined DEBUG_CONNECTChristian Grothoff2014-02-15
|
* refactoring and cleanup of make_nonblocking_noninheritable(),Christian Grothoff2014-02-12
| | | | | | based on suggestions by Karlson2k <k2k@narod.ru> (but not exactly)
* From: Karlson2k <k2k@narod.ru>Christian Grothoff2014-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 GrinChristian Grothoff2014-02-11
|
* Patch from Karlson2k: fix MHD_get_fdset to accept NULL as max_fd, as ↵Christian Grothoff2014-02-11
| | | | | | described in doxy
* -cosmetic patch from Evgeny GrinChristian Grothoff2014-02-08
|
* Add decl check for _stati64 (required for newer plibc)LRN2014-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 Grothoff2014-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 symbolsChristian Grothoff2013-12-24
|
* -work around compiler warningsChristian Grothoff2013-12-22
|
* add support for SNIChristian Grothoff2013-12-21
|
* remove debug messageMatthias Wachs2013-12-20
|
* fixing #3179Christian Grothoff2013-12-09
|
* -fix tests for MHD_USE_SUSPEND_RESUMEChristian Grothoff2013-12-03
|
* -newlineChristian Grothoff2013-12-03
|
* Adding Matt Holiday's fixes to suspend/resume logicChristian Grothoff2013-12-03
| | | | | (plus documentation updates).
* -fix shutdown race for wpipe on non-Linux systemsChristian Grothoff2013-11-26
|
* -fixes to MHD_suspend_connectionChristian Grothoff2013-11-25
|
* experimental code to support flow control for connections via ↵Christian Grothoff2013-10-24
| | | | MHD_suspend_connection and MHD_resume_connection
* typoChristian Grothoff2013-09-23
|
* fully initialze modern gcrypt in MHD_init, only use thread initialization ↵Christian Grothoff2013-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 Grothoff2013-09-11
|
* -doxygen fixesChristian Grothoff2013-09-07
|
* set IPV6_V6ONLY correctly when MHD_USE_IPv6 but not MHD_USE_DUAL_STACKMatthias Wachs2013-09-04
|
* fix epoll use after freeChristian Grothoff2013-09-02
|
* -setname_np does not exist on FreeBSDChristian Grothoff2013-09-01
|
* -typoChristian Grothoff2013-09-01
|
* -doxygen fixesChristian Grothoff2013-09-01
|
* -fix ftbfs on freebsdChristian Grothoff2013-09-01
|
* towards fixing #3008Christian Grothoff2013-08-30
|
* fix #3007Christian Grothoff2013-08-28
|
* -do not run epoll tests if epoll was disabled, even on linuxChristian Grothoff2013-08-28
|
* making build tolerate missing SOCK_NONBLOCK/EPOLL_CLOEXEC (older glibc)Christian Grothoff2013-08-27
|
* -more doxygen improvementsChristian Grothoff2013-08-22
|
* W32: shutdown a socket for writing before closing itLRN2013-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 W32LRN2013-08-12
|
* -removing bogus #ifdefsChristian Grothoff2013-08-11
|
* attempted fix for #2983Christian Grothoff2013-08-10
|
* address #2984Christian Grothoff2013-08-10
|
* -disable use of shutdown on W32Christian Grothoff2013-08-10
|
* -reverting removal of Plibc, select on pipes problem is critialChristian Grothoff2013-08-07
|
* Part 2 of 2 - Remove and replace PlibC macros with native function calls. Christian Grothoff2013-08-07
|
* Fix compiling for systems without SOCK_NONBLOCKLRN2013-08-02
|
* -fix #2968Christian Grothoff2013-07-28
|
* microhttpd: put "#if EPOLL_SUPPORT" everywhere, so compilation can succeed ↵Andrey Uzunov2013-07-21
| | | | even when it is disabled
* -removing bad printfChristian Grothoff2013-07-20
|