Commit Graph
196 Commits
Author SHA1 Message Date
Christian Grothoff 91548850d9 check system call return values in tests 2017-03-10 16:40:27 +01:00
silvioprog dd3da90283 i18n example: re-add useful comments as suggested by Karlson2k 2017-03-01 13:14:27 -03:00
silvioprog bf56a65a0c i18n example has been failed in some SOs, then we decided to make it as an extra dist 2017-02-28 22:36:40 -03:00
silvioprog abb31c0a77 Added i18n example: msgs_i18n.c 2017-02-28 15:51:32 -03:00
Christian Grothoff b3a45b40e0 apply copyright header 2017-02-26 22:46:50 +01:00
Christian Grothoff 3edd4bfa7f update gitignore files 2017-02-26 21:23:43 +01:00
Christian Grothoff b98468404c avoid c99 construct, we do not yet require c99 elsewhere 2017-01-31 13:28:14 +01:00
Evgeny Grin (Karlson2k) 938b9b8dae fileserver_example: used MHD built-in function for sending files, added comments 2016-12-01 17:42:17 +03:00
Evgeny Grin (Karlson2k) 4b795e9fc6 Added MHD_USE_AUTO and MHD_USE_AUTO_INTERNAL_THREAD to simplify using of MHD by multi-platform applications 2016-11-10 22:18:20 +03:00
Evgeny Grin (Karlson2k) e067df9397 One more flag renamed: MHD_USE_EPOLL_TURBO -> MHD_USE_TURBO.
Hopefully last one for now.
2016-11-10 17:42:28 +03:00
Evgeny Grin (Karlson2k) df98141b03 Added missing MHD_USE_INTERNAL_POLLING_THREAD in examples. 2016-11-08 19:44:50 +03:00
Evgeny Grin (Karlson2k) d5245634c2 Added MHD_USE_ERROR_LOG flag with same value as MHD_USE_DEBUG.
New name better explains flag actions.
2016-11-08 19:41:28 +03:00
Evgeny Grin (Karlson2k) a48ca85fb7 Renamed daemon flags:
MHD_USE_SELECT_INTERNALLY -> MHD_USE_INTERNAL_POLLING_THREAD
MHD_USE_POLL_INTERNALLY -> MHD_USE_POLL_INTERNAL_THREAD
MHD_USE_EPOLL_INTERNALLY -> MHD_USE_EPOLL_INTERNAL_THREAD
2016-11-08 00:54:59 +03:00
Evgeny Grin (Karlson2k) 959d55ec5e Renamed MHD flags. Now all flags are in forms MHD_USE_* or MHD_ALLOW_*. 2016-11-07 17:08:03 +03:00
Christian Grothoff d7392e0882 all flags start with MHD_USE_, rename MHD_ALLOW_UPGRADE to MHD_USE_UPGRADE for consistency 2016-11-04 17:02:56 +01:00
Christian Grothoff ca582a0633 add example for MHD upgrade use 2016-11-04 17:01:25 +01:00
Christian Grothoff ef7fe75ff2 deprecate USE_SSL for USE_TLS, rename in code 2016-10-11 16:09:17 +00:00
Christian Grothoff 011d784f6c add return value checks for a few more system calls in testcases and examples 2016-09-23 14:18:06 +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
Evgeny Grin (Karlson2k) 9826ad54e0 Refactoring: do not define EPOLL_SUPPORT if epoll is disabled or not supported. 2016-08-24 15:02:10 +00:00
Evgeny Grin (Karlson2k) 0d1e59bc6e Added .gitignore 2016-07-28 15:15:52 +00:00
Christian Grothoff a3bfa8a2d6 applying cosmetics patch #4137 2016-01-28 06:06:50 +00:00
Christian Grothoff 9363e91e94 fixing another one of the open/stat clones 2016-01-18 22:14:09 +00:00
Christian Grothoff a0f69a6671 -fixes in code clones() 2016-01-18 21:46:56 +00:00
Christian Grothoff ff4d6dea42 -fclose file, even if fileno failed... 2016-01-18 21:42:33 +00:00
Christian Grothoff 979e499936 -check rval before fstat'ing 2016-01-18 21:41:49 +00:00
Christian Grothoff d9da87668f -fclose file, even if fileno failed... 2016-01-18 21:39:09 +00:00
Christian Grothoff 91e7665945 avoid stat/open race, and actually check for regular file (in demo) 2016-01-18 20:48:52 +00:00
Christian Grothoff 9a5dece83e eliminate stat/fopen race in example 2016-01-18 20:45:12 +00:00
Christian Grothoff 1421e4394f eliminate stat/fopen race in example 2016-01-18 20:43:27 +00:00
Christian Grothoff 9be469e2ee use getc() as in demo.c instead of sleep() 2016-01-18 20:37:15 +00:00
Christian Grothoff 24305c50dd free user to clarify API usage 2016-01-18 20:30:54 +00:00
Christian Grothoff cef420ebd7 free pass to clarify API usage 2016-01-18 20:29:38 +00:00
Christian Grothoff a375ced487 -nl issue 2016-01-18 20:29:20 +00:00
Christian Grothoff 8b0e534ac4 add timeout example 2015-12-05 16:30:51 +00:00
Christian Grothoff fdc3e17e30 killing libmicrospdy 2015-12-01 13:06:38 +00:00
Christian Grothoff 58b30e7e5e fix #3926: ignore close() errors other than EBADF 2015-08-02 17:11:48 +00:00
Christian Grothoff f6c78e2e11 -avoid deprecation 2015-07-15 13:05:12 +00:00
Christian Grothoff 62f06f739a -support HEAD in example 2015-06-26 21:18:13 +00:00
Christian Grothoff 55ecaec5a7 modify demo to handle HEAD requests 2015-06-25 19:08:49 +00:00
Christian Grothoff 10a27715a5 Adding "testcase" (demo_https) and a fix. -CG
Hi,

I am doing test with HTTPS at low bit rate for large files using:
wget -v --no-check-certificate --limit-rate=1000 https://....

When the MHD daemon is configured with MHD_USE_EPOLL_INTERNALLY_LINUX_ONLY, I noticed that the thread takes 100% CPU, whereas
the MHD_USE_POLL_INTERNALLY configuration show a normal CPU usage.

Adding logs I see that the busy loops takes place at daemon.c, line 2605 (0.9.38):
daemon->eready_tail never gets NULL most probably due to connection.c, line 2671 to 2721

Thanks,

Louis
2015-04-12 19:52:29 +00:00
Christian Grothoff a12c532cba -bringing copyright tags up to FSF standard 2015-02-07 23:20:06 +00:00
Christian Grothoff 10cf14317c -bringing copyright tags up to FSF standard 2015-02-07 23:12:45 +00:00
Christian Grothoff 7f0a04de96 fix issue with chunked encoding used for http1.0 connections of Keep-Alive header was set 2015-02-04 19:37:19 +00:00
Christian Grothoff 6c80b16d18 -check malloc() return value 2014-12-20 00:36:00 +00:00
Evgeny Grin (Karlson2k) 6d51e1f0e8 minor MHD_socket/int fixes 2014-03-24 21:18:47 +00:00
Evgeny Grin (Karlson2k) 20699d328b Use number of CPUs in tests and examples 2014-03-06 13:22:35 +00:00
Evgeny Grin (Karlson2k) b630c46912 Update usage of libcurl and libgnutls compiler flags, allow correct compilation with "--with-gnutls=prefix" 2014-03-06 10:50:52 +00:00
Evgeny Grin (Karlson2k) fdc23c4e36 Cleanup libmicrospdy extra flags 2014-03-05 20:07:11 +00:00
Evgeny Grin (Karlson2k) 3e2d1f25f2 Remove global dependency on PTHREAD_LIBS and use it only where it's required 2014-02-26 17:55:27 +00:00