Commit Graph
311 Commits
Author SHA1 Message Date
Christian Grothoff b6db4c24d4 -bump 2014-10-29 19:54:14 +00:00
Christian Grothoff fd94723863 Hi Christian,
I attach the first attempt on SO_REUSEPORT. The patch is available
either at https://github.com/foxik/libmicrohttpd/commit/9ce9422742e10458f87275ea202a982e00c2b88c
or attached. (It is against the version with
MHD_DAEMON_OPTION_CURRENT_CONNECTIONS, but I can rebase it to current
SVN HEAD if you want.)

It seems that a reasonably multiplatform way of detecting SO_REUSEPORT is
  #ifdef SO_REPOSEPORT
which is used for example by Perl. For SO_EXCLUSIVEADDRUSE, the same
strategy seems to work too, according to Windows SDK headers and MinGW
WinAPI headers.

The current patch adds an option to allowing/disallowing address:port
reuse. One remark:
- currently both nonexisting SO_xxx and setsockopt failure are fatal and
  MHD_start_daemon fails. That may be too harsh -- maybe the
  MHD_OPTION_LISTENING_ADDRESS_REUSE should be only a hint.

  Nevertheless, as one can freely not use
  MHD_OPTION_LISTENING_ADDRESS_REUSE option, I chose the "fail on error"
  behaviour.

Thanks,
cheers,
Milan Straka

Original patch modified to get rid of some redundant USE_DEBUG
checks, fix indentation, and #ifndef SO_REUSEPORT on Linux,
we try be #defining it to 15 ourselves.
2014-10-29 19:50:58 +00:00
Christian Grothoff 19d66bd8c1 -no comma at end of enum 2014-10-29 15:32:10 +00:00
Christian Grothoff d50980a765 From: Milan Straka <fox@ucw.cz>
Date: Wed, 29 Oct 2014 09:59:09 +0100
Subject: [PATCH 2/2] Add MHD_DAEMON_INFO_CURRENT_CONNECTIONS to
 MHD_DaemonInfoType.

The MHD_DAEMON_INFO_CURRENT_CONNECTIONS returns number of current
connections handled by the daemon.

Useful after MHD_quiesce_daemon to find out whether all connections
have been served.
2014-10-29 15:29:31 +00:00
Christian Grothoff 67d953de64 -preping for release 0.9.38 2014-10-03 12:40:39 +00:00
Christian Grothoff 2b47dfd735 -bump 2014-09-29 20:36:31 +00:00
Sree Harsha Totakura c94103be0f Mention the timeout as milliseconds. 2014-08-05 13:17:57 +00:00
Christian Grothoff 2118763c48 -typo 2014-07-08 14:28:49 +00:00
Christian Grothoff ed9dfcdad4 fix failure to terminate quickly in thread-per-connection mode if clients have open connections 2014-06-26 19:07:19 +00:00
Christian Grothoff 44467484f7 better fix for the concurrent response modification issue: do not modify response to add extra headers, only add them into the connection output buffer 2014-06-22 10:25:46 +00:00
Christian Grothoff 69cacd7e02 -fix lack of adding listen FD to epoll set for external select before first call to MHD_run (see mailinglist) 2014-06-19 15:35:25 +00:00
Christian Grothoff 5209abc676 -add missing extern 2014-06-10 22:32:30 +00:00
Christian Grothoff ea8bac4745 adding MHD_set_response_options function 2014-06-08 13:11:50 +00:00
Christian Grothoff 1f4a53507e fix #3413 2014-06-01 22:08:47 +00:00
Christian Grothoff fd764222b8 -version bump 2014-05-28 13:49:18 +00:00
Christian Grothoff 07e0a5ea0a releasing 0.9.36 2014-05-25 18:20:18 +00:00
Christian Grothoff 51da5739fe -fix #3397 2014-05-13 16:26:49 +00:00
Christian Grothoff 7231b7f830 fix #3391 2014-05-02 18:43:17 +00:00
Christian Grothoff c94a82388f improve documentation for key-value iterator 2014-04-24 19:41:30 +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
Evgeny Grin (Karlson2k) c196047666 Updated doxygen for MHD_FEATURE with new option name, fixed check of initialisaion of ligcrypt < 1.6.0 2014-04-07 20:26:20 +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) 30da663666 W32: use critical section instead of waitable object as MHD require synchronization only within one process 2014-04-04 11:19:41 +00:00
Evgeny Grin (Karlson2k) 96a5541b5f Fix w32 build 2014-04-04 10:22:05 +00:00
Evgeny Grin (Karlson2k) 002ebb63f3 fix macros for pthread mutex 2014-04-01 07:23:33 +00:00
Evgeny Grin (Karlson2k) 08a582230d Cosmetics 2014-04-01 06:22:25 +00:00
Evgeny Grin (Karlson2k) 60d4fbee43 Implement wrapper macros for mutex manipulations, support W32 native mutex, require at least WinXP headers on W32 2014-04-01 06:16:04 +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
Christian Grothoff 84fd3a8bbd -fix testspdy linker issue 2014-03-05 15:15:12 +00:00
Evgeny Grin (Karlson2k) 5f568b003a Improve header compatibility with MSVC 2014-02-26 17:55:34 +00:00
Christian Grothoff 756e2da381 version bumping 2014-02-24 22:33:49 +00:00
Sree Harsha Totakura bc1137bd60 Add support for TCP FASTOPEN connections. 2014-02-24 16:25:43 +00:00
Evgeny Grin (Karlson2k) 795f26da23 w32functions cleanups and makefile fixes for W32 2014-02-20 07:07:30 +00:00
Christian Grothoff 68c667f88b move headers to src/include, build w32functions.c as static library (untested) to make 'make distclean' work cleanly 2014-02-19 06:47:35 +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) 41ea8b14cd Remove PlibC wrappers and macros 2014-02-18 18:39:59 +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) 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) c311027f28 Implement MHD_socket, MHD_INVALID_SOCKET 2014-02-18 18:37:48 +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 c07b4f1057 -doxygen, style and indentation fixes to microspdy.h 2014-02-08 14:22:22 +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 73659c8e20 -bump 2014-01-22 08:48:22 +00:00
Christian Grothoff 3d8a80474e -version bump 2014-01-01 20:51:45 +00:00