Commit Graph
231 Commits
Author SHA1 Message Date
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
Sree Harsha Totakura bc1137bd60 Add support for TCP FASTOPEN connections. 2014-02-24 16:25:43 +00:00
Christian Grothoff 3a1fd3476c -ensure texinfo is always happy 2014-02-19 06:22:45 +00:00
Evgeny Grin (Karlson2k) a9474fdab2 Remove plibc leftover, update ChangeLog and docs 2014-02-18 20:05:14 +00:00
Christian Grothoff 97831dfd63 -update doxygen rules 2014-02-18 18:57:32 +00:00
Evgeny Grin (Karlson2k) 41e5c4888a Remove PlibC from autotools files 2014-02-18 18:40:50 +00:00
Christian Grothoff e657e19644 Karlson2k: fix AM_CPPFLAGS vs AM_CFLAGS usage 2014-02-18 07:09:20 +00:00
Christian Grothoff 9889fd9eee add support for SNI 2013-12-21 16:28:54 +00:00
Christian Grothoff fe6f6a8589 -sadly, this freaks out automake badly 2013-12-11 19:40:20 +00:00
Christian Grothoff 2aa75f592d -check for makeinfo 2013-12-10 13:04:15 +00:00
Christian Grothoff 04ca76e78e Adding Matt Holiday's fixes to suspend/resume logic
(plus documentation updates).
2013-12-03 20:11:34 +00:00
Christian Grothoff 802d528bad -fix warnings in manual build 2013-11-04 12:53:34 +00:00
Christian Grothoff 8e6b1e7899 experimental code to support flow control for connections via MHD_suspend_connection and MHD_resume_connection 2013-10-24 08:41:04 +00:00
Christian Grothoff 017c372418 also pass MHD connection handle in URI callback, needed for GNUnet 2013-09-17 19:33:20 +00:00
Christian Grothoff b6151e98ce -doxygen fixes 2013-09-07 20:28:28 +00:00
Christian Grothoff ea226bb155 -xdist 2013-08-23 17:20:54 +00:00
Christian Grothoff 2c7bc3e0cb -fix 2013-08-23 17:17:05 +00:00
Christian Grothoff 404892a3b6 -more doxygen improvements 2013-08-22 07:01:16 +00:00
Christian Grothoff 4f6aa30eb0 -more doxygen improvements 2013-08-22 06:16:06 +00:00
Christian Grothoff a50a5626c0 document #2983 2013-08-12 21:56:49 +00:00
Christian Grothoff 9569a609ed -document select/shutdown issue on W32, move z/os documentation into manual 2013-08-12 21:51:47 +00:00
LRN d7a2fdc595 Don't redefine asprintf for MinGW-w64 2013-08-11 10:30:52 +00:00
Christian Grothoff 22941cd1b6 -fix reactivating plibc 2013-08-07 22:05:53 +00:00
Christian Grothoff 4251a1cd97 Part 1 of 2 - Remove PlibC from autotools files. 2013-08-07 06:22:16 +00:00
Christian Grothoff 81464b301a Removes the requirement of liberty. No longer shipped by newer gcc. 2013-08-07 06:20:13 +00:00
Christian Grothoff fe9c559603 -yes, we never ignore return values, even in examples on getchar()... 2013-07-21 16:19:41 +00:00
Christian Grothoff 6e07994a8b -fixing #2899: allow clients to customize MHD_BUF_INC_SIZE via option 2013-07-05 10:12:10 +00:00
Christian Grothoff 79f2eea262 -documentation updates for epoll 2013-06-25 13:13:46 +00:00
Christian Grothoff 2c646f956f -nicer error handling in example 2013-06-25 13:00:17 +00:00