409 Commits
Author SHA1 Message Date
Evgeny Grin (Karlson2k) 4c25471bfd If examples are disabled - do not build 'examples' in '/doc' too. 2016-09-21 16:21:02 +00:00
Evgeny Grin (Karlson2k) 0b37868baf Fixed compiling examples on old compilers. 2016-09-21 16:18:00 +00:00
Christian Grothoff c073888899 -add back Martin's fix, he was right 2016-09-06 19:31:25 +00:00
Christian Grothoff 58b3056ca8 -document better how to use MHD_resume_connection() with external event loop 2016-09-04 15:51:15 +00:00
Christian Grothoff b32f9a0e3d -fixing minor issues (leaks, use after free) in recently added upgrade logic 2016-09-04 12:35:46 +00:00
Christian Grothoff bc616b31c7 update manual 2016-09-04 10:47:22 +00:00
Christian Grothoff b6ac5b9f8e -theoretically finishing epoll() + HTTPS-based connection upgrade logic 2016-08-28 23:09:44 +00:00
Christian Grothoff 11171dc8c5 documenting upgrade API in manual 2016-08-27 19:31:32 +00:00
Evgeny Grin (Karlson2k) cd030ca9ca epoll is now supported on non-Linux platforms (namely illumos).
Renamed MHD options and updated documentation.
2016-08-24 15:02:16 +00:00
Christian Grothoff c42da981f4 -nicer indentation 2016-08-24 12:36:32 +00:00
Christian Grothoff e1257548da fixing crash bug, connection-limit bug and documenting connection-limit behavior better 2016-08-15 11:13:50 +00:00
Evgeny Grin (Karlson2k) 0d1e59bc6e Added .gitignore 2016-07-28 15:15:52 +00:00
Christian Grothoff 39f06e27b7 fix FIXME in tutorial 2016-07-08 19:35:27 +00:00
Christian Grothoff 8a4e48c6f4 add MHD_CONNECTION_INFO_CONNECTION_SUSPENDED 2016-05-17 11:37:54 +00:00
Christian Grothoff 84ec6a79ca adding logic to do 'fast' calls to read/write on a single connection without going back to the main event loop to help FE with his performance issue 2016-05-02 04:13:06 +00:00
Christian Grothoff cc803ec8c2 clarifications to manual re: [libmicrohttpd] MHD_ContentReaderCallback and Byte serving 2016-04-30 08:24:42 +00:00
Evgeny Grin (Karlson2k) dc1eb9a9d7 largepost.c: corrected const pointer to const char 2016-04-11 14:52:17 +00:00
Evgeny Grin (Karlson2k) d4d4393a16 Added check result of MHD_post_process() in largepost.c 2016-04-11 14:08:30 +00:00
Evgeny Grin (Karlson2k) 2cf1ffafba largepost.c: fixed compiling by VS 2016-04-11 14:08:18 +00:00
Evgeny Grin (Karlson2k) 9c113d780a simplepost.c: fixed compiling with VS before 2015 2016-04-11 14:08:15 +00:00
Christian Grothoff 65f91e3293 fix #4233 2016-04-02 23:05:53 +00:00
Christian Grothoff 1e9240c3e0 fix #4235 2016-04-02 23:03:06 +00:00
Christian Grothoff d3b17d3b19 -Fabian Mewes:
Fix the out-of-bound read of the NUL byte using strlen() in
microhttpd/daemon.c:MHD_init_daemon_certificate()

Fix the out-of-bound read of the NUL byte using strlen() in
microhttpd/daemon.c:MHD_init_daemon_certificate()
2016-02-29 12:27:57 +00:00
Christian Grothoff 26a19e6787 cleaning up largepost 2015-12-11 22:29:46 +00:00
Christian Grothoff 95d9c85bab -cosmetics 2015-12-05 16:58:38 +00:00
Evgeny Grin (Karlson2k) 90341c2782 examples/sessions.c: small fix 2015-12-04 11:12:09 +00:00
Evgeny Grin (Karlson2k) cec4f5eb37 Remove traces of libmicrospdy 2015-12-03 13:41:23 +00:00
Christian Grothoff dc54cd092a realize suggestion from FC on MHD list to improve MHD_get_connection_values() when used with a bitmask 2015-10-25 22:07:42 +00:00
Christian Grothoff 94c16f349d help systemd by not calling shutdown() on listen socket if MHD_USE_PIPE_FOR_SHUTDOWN is given 2015-09-22 17:21:33 +00:00
Christian Grothoff 475b350b71 correct documentation as to when MHD_USE_EPOLL_LINUX_ONLY is allowed (previous formulation was wrong) 2015-08-30 12:55:04 +00:00
Christian Grothoff 07b65da99f fix #3909 with patch as suggested 2015-07-25 13:55:29 +00:00
Christian Grothoff 3800d3820b -modernize example 2015-07-15 12:58:56 +00:00
Christian Grothoff a85f2baa9d fix #3869: outdated FSF address 2015-06-30 11:39:18 +00:00
Christian Grothoff 4cdf058b25 -clarify when it is safe to call MHD_suspend_connection 2015-06-25 12:59:09 +00:00
Christian Grothoff 4f9c53c222 -fix compiler warnings 2015-06-12 07:45:50 +00:00
Christian Grothoff c549988da8 fix typo (#3789) 2015-05-16 19:08:50 +00:00
Christian Grothoff a05803df4f Robert Gronenberg wrote:
I am using libmicrohttpd in a multithreaded application in the
thread-per-connection mode. In order to maintain statistics and such on
the various clients, the application should be notified about
connections being started and stopped. Something like the
MHD_OPTION_NOTIFY_COMPLETED for requests, but then for connections. As
far as I could find libmicrohttpd does not (yet) provide that functionality.

Attached is a patch that does add this functionality by registering a
connection notification callback function: MHD_OPTION_NOTIFY_CONNECTION
(inspired by the MHD_OPTION_NOTIFY_COMPLETED option).

Could this be included in libmicrohttpd?

=>

The patch was only working for multithreaded apps, so I adjusted it
to cover other threading models, fixed a merge issue and added the
ability to associate a void* with the callbacks (and obtain it via
MHD connection info).  And I updated the manual & ChangeLog. Now
I think it can be included ;-).
2015-03-31 08:38:33 +00:00
Christian Grothoff b526badc92 document pointer validity 2015-02-08 10:52:04 +00:00
Christian Grothoff 19183a161c adding MHD_OPTION_HTTPS_KEY_PASSWORD 2015-02-08 00:37:10 +00:00
Christian Grothoff a12c532cba -bringing copyright tags up to FSF standard 2015-02-07 23:20:06 +00:00
Christian Grothoff 61876d0578 fix documentation 2015-01-11 00:31:54 +00:00
Christian Grothoff 2ae98a4253 -fix type in docu 2014-12-27 08:15:53 +00:00
Christian Grothoff b2a041e934 make MHD_http_unescape() part of API (#3585) 2014-12-19 23:38:18 +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 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
Sree Harsha Totakura c94103be0f Mention the timeout as milliseconds. 2014-08-05 13:17:57 +00:00
Christian Grothoff ea8bac4745 adding MHD_set_response_options function 2014-06-08 13:11:50 +00:00
Christian Grothoff c94a82388f improve documentation for key-value iterator 2014-04-24 19:41:30 +00:00
Christian Grothoff c34947db86 -correct documentation 2014-04-14 17:55:32 +00:00
Christian Grothoff ca3a7d621c add MHD_OPTION_HTTPS_MEM_DHPARAMS to support PFS 2014-04-07 11:27:18 +00:00