Commit Graph
2846 Commits
Author SHA1 Message Date
Christian Grothoff acd39ed23d releasing libmicrohttpd 0.9.60 v0.9.60 2018-11-06 19:55:27 +01:00
Christian Grothoff 3fc686e335 initialize epoll_fd even if we have no listen fd, patch by Jose Bollo 2018-11-01 16:31:03 +01:00
Christian Grothoff 777d5e048d force setting MHD_USE_ITC if using thread-per-connection and notify_completed for timely notifications 2018-10-29 20:37:21 +01:00
Christian Grothoff 533124d379 fix possibly bad clearing of client_aware flag 2018-10-29 20:27:54 +01:00
Christian Grothoff 4728124102 notify main thread about thread termination for instant clean up 2018-10-20 12:45:21 +02:00
Christian Grothoff b55cd46bfd add --enable-experiemental option to not compile src/lib/ unless explicitly requested 2018-10-18 17:34:53 +02:00
Christian Grothoff 41ac932526 From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>
Date: Thu, 18 Oct 2018 16:21:55 +0200
Subject: [PATCH] Fix build issue when parent dir is an automake project dir

Building fails if the parent directory is an automake project dir:

$ ./bootstrap
libtoolize: putting auxiliary files in '..'.
libtoolize: copying file '../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:61: installing '../compile'
configure.ac:67: error: required file '../config.rpath' not found
configure.ac:26: installing '../missing'
doc/examples/Makefile.am: installing '../depcomp'
autoreconf: automake failed with exit status: 1

The fix is to specify AC_CONFIG_AUX_DIR before AM_INIT_AUTOMAKE.
---
2018-10-18 17:16:49 +02:00
Christian Grothoff 9199e5aa3a From: Gauthier Haderer <ghaderer@wyplay.com>
Date: Mon, 15 Oct 2018 14:11:39 +0200
Subject: [PATCH] Add response flag to force version to 1.0 and maintain
 connection management.

The existing MHD_RF_HTTP_VERSION_1_0_ONLY flag already changes MHD's
behavior to apply HTTP 1.0 rules for connection management. When
enabled, MHD sends a response using the same version as used in the
request (is this normal?).

What I want is MHD responding as a HTTP 1.0 server with support for
connection management headers would do. This is what the
MHD_RF_HTTP_VERSION_1_0_RESPONSE response flag is for.

You can even combine it with MHD_RF_HTTP_VERSION_1_0_ONLY to change the
response's HTTP version while maintaining strict compliance with HTTP
1.0 regarding connection management.

This solution is not perfect as this flag is set on the response which
is created after header processing. So MHD will behave as a HTTP 1.1
server until the response is queued. It means that an invalid HTTP 1.1
request will fail even if the response is sent with HTTP 1.0 and the
request would be valid if interpreted with this version. For example,
this request will fail in strict mode:

GET /dummy HTTP/1.1

as the Host header is missing and is mandatory in HTTP 1.1, but it
should succeed when interpreted with HTTP 1.0.

I don't think this is a big issue in practice. Besides, being able to
change the HTTP version on a response basis is really convenient when
using MHD in a test framework where we need to validate a client against
HTTP 1.1 AND HTTP 1.0.
2018-10-16 20:44:39 +02:00
silvioprog f7ab8b59a3 improve comments, cosmetic 2018-10-09 01:58:33 -03:00
silvioprog 30477aab57 Style fixes. 2018-10-09 01:44:50 -03:00
Christian Grothoff 0db81a9248 fix #5411 2018-10-05 19:23:26 +02:00
Evgeny Grin (Karlson2k) bc8e12c837 Fixed compiler warning on W32 2018-09-26 23:59:26 +03:00
Evgeny Grin (Karlson2k) da68f321e5 Fixed build without HTTPS support 2018-09-26 23:57:33 +03:00
Christian Grothoff a145baea79 fix linker error with --with-gnutls path for mhd2 lib 2018-09-12 15:38:14 +02:00
Christian Grothoff 7ade892317 clean up use of GNUTLS linker options in various places, re-add SAVE_LIBS restoration to configure.ac to avoid linking indiscriminately against GnuTLS 2018-09-11 15:11:53 +02:00
Marcello Stanisci 9624d2f58e fix --with-gnutls 2018-09-10 09:18:01 +02:00
Christian Grothoff ebbce0a759 fix test in testcase 2018-08-18 13:37:23 +02:00
Christian Grothoff 605e35bb6e style fixes 2018-08-18 13:26:38 +02:00
Christian Grothoff b4afd3fce6 fix a few more compiler warnings 2018-08-18 11:30:17 +02:00
Christian Grothoff 439c14ab00 fix typo 2018-08-18 11:23:22 +02:00
Christian Grothoff dca675afab polish configure.ac, use AS_IF where appropriate 2018-08-18 11:22:08 +02:00
Christian Grothoff 27a95aa100 add missing break 2018-08-18 11:03:20 +02:00
Christian Grothoff 66c9ad84db fix where we call gnutls_session_set_ptr to prevent NPE (#5427) 2018-08-18 10:59:46 +02:00
silvioprog 60fe2b37f7 Small spell correction. 2018-07-31 14:45:08 -03:00
Christian Grothoff a7c0b04cce properly recognize Dirk B. 2018-07-14 13:27:46 +02:00
Christian Grothoff 2c47a23dec integrate TLS PSK patch from Tal Moaz (plus documentation, plus style and bugfixes 2018-07-14 13:27:45 +02:00
Christian Grothoff 2ed04522e2 add support for digest auth with hashed password 2018-07-14 13:27:45 +02:00
Christian Grothoff 2ade9eaad8 applying W32 fix suggested by Tim 2018-06-26 17:06:03 +02:00
Christian Grothoff 9b4358cd5a check response allocation succeeded when generating internal errors 2018-06-22 15:58:24 +02:00
Christian Grothoff 832739556b some minor code cleaning issues 2018-06-22 15:16:11 +02:00
Christian Grothoff 65a322cfe8 mark bug, too tired to fix right now 2018-03-25 20:51:40 +02:00
Christian Grothoff 223e88c416 Merge branch 'master' of gnunet.org:libmicrohttpd 2018-03-25 20:51:12 +02:00
Christian Grothoff 22895a5504 fix bug 2018-03-25 20:48:45 +02:00
silvioprog cd50c5b3a3 Cosmetic fix. 2018-03-24 00:03:11 -03:00
Christian Grothoff 621215675e fix c90 warning 2018-03-23 22:52:33 +01:00
Tim Rühsen 090ee9e604 Fix race condition in test_get_sendfile/test_get_sendfile11 2018-03-15 21:08:52 +01:00
Tim Rühsen ea4b7cd39e add missing mhd_winsock_inited_ to src/lib/init.c 2018-03-15 20:43:30 +01:00
Tim Rühsen cb51153659 Add MinGW CI build 2018-03-15 19:47:31 +01:00
Christian Grothoff 8abd74f3dc add suspend_resume_epoll example (from mailinglist) 2018-03-14 05:31:09 +01:00
Christian Grothoff 7d7ccbcdbd Hi Christian,
Thank you!  Very cool to see the example working.  Funny, I
implemented MHD_get_timeout in the main loop in my project but in all
my tests it always returned MHD_NO, so I assumed it was not applicable
to my use case and didn't include it in the example I wrote.  But I
didn't make the connection that it *also* had to be called after
MHD_resume_connection until your response here.  Would you consider
the attached patch?   It adds one line to the docs that I'm quite sure
would have pointed me in the right direction had it been there before.

Thanks!
Bob
2018-03-14 05:22:48 +01:00
Christian Grothoff 85913afa11 move to canonical gettext 2018-03-10 12:28:34 +01:00
Christian Grothoff 303440c842 fix FTBFS issues on MinGW 2018-03-10 12:02:33 +01:00
Christian Grothoff 8b531fd28c fix misc build issues if various features (poll/epoll/upgrade-support) are disabled 2018-03-05 18:49:56 +01:00
Christian Grothoff 77398cdb55 check for dlfcn.h presence 2018-03-04 13:08:22 +01:00
Christian Grothoff e3ff894618 fix build issue in absence of epoll 2018-03-04 12:56:10 +01:00
Christian Grothoff a7b255811e do not use MHD_NONNULL on w32 2018-03-04 11:40:08 +01:00
Christian Grothoff f60a569e51 fix 'race' between MHD_epoll and MHD_daemon_quiesce on epoll listen FD removal, resolve simply by allowing syscall to fail with ENOENT 2018-03-02 22:56:41 +01:00
Christian Grothoff f754fafcd6 fix leak in testcase 2018-03-02 22:48:22 +01:00
Christian Grothoff 67f42cc8fd make asan happier 2018-03-02 22:44:59 +01:00
Christian Grothoff a6d885783c fix enum inconsistencies 2018-03-02 22:38:19 +01:00