aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* add test for &-URI parsing and URI loggingChristian Grothoff2019-02-09
|
* preliminary patch for query string issue reported on the MLChristian Grothoff2019-02-07
|
* fix memory leak with TLS if daemon startup fails as reported by Nicolas Mora ↵Christian Grothoff2019-01-11
| | | | on the list
* Added minimal example for how to compress HTTP response. (#4914)silvioprog2019-01-08
|
* Check should (indeed) be for GNUTLS_E_AGAIN.Christian Grothoff2018-12-19
| | | | | | | | | | | | | | | | | | | | | | | Lasa Martxel wrote: Hello, I have found the following code in daemon.c file, lines 1449 to 1467: if (0 >= res) { if (GNUTLS_E_INTERRUPTED != res) { urh->app.celi &= ~MHD_EPOLL_STATE_WRITE_READY; if (GNUTLS_E_INTERRUPTED != res) (GNUTLS_E_INTERRUPTED != res) is checked twice. In the read part (a few lines above), GNUTLS_E_INTERRUPTED != res is checked first and then GNUTLS_E_AGAIN != res. It looks like something similar should be done here, but I’m not sure. Thanks, Martxel
* Fixes build issue of testcase for some configurations.Christian Grothoff2018-12-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lasa Martxel <mlasa@ikerlan.es> wrote: I was getting an error when running make check, when building test_upgrade. I have followed the following steps to build the library (tried both on master an v0.9.62, same result): git clone https://gnunet.org/git/libmicrohttpd.git cd libmicrohttpd ./bootstrap ./configure --enable-curl make make check The error message I was getting is the following one: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/include -I../../src/microhttpd -fvisibility=hidden -pthread -g -O2 -fno-strict-aliasing -MT test_upgrade-test_upgrade.o -MD -MP -MF .deps/test_upgrade-test_upgrade.Tpo -c -o test_upgrade-test_upgrade.o `test -f 'test_upgrade.c' || echo './'`test_upgrade.c mv -f .deps/test_upgrade-test_upgrade.Tpo .deps/test_upgrade-test_upgrade.Po /bin/bash ../../libtool --tag=CC --mode=link gcc -fvisibility=hidden -pthread -g -O2 -fno-strict-aliasing -o test_upgrade test_upgrade-test_upgrade.o ../../src/microhttpd/libmicrohttpd.la libtool: link: gcc -fvisibility=hidden -pthread -g -O2 -fno-strict-aliasing -o .libs/test_upgrade test_upgrade-test_upgrade.o ../../src/microhttpd/.libs/libmicrohttpd.so -pthread /usr/bin/ld: test_upgrade-test_upgrade.o: undefined reference to symbol 'gnutls_handshake@@GNUTLS_3_4' //usr/lib/x86_64-linux-gnu/libgnutls.so.30: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:1139: recipe for target 'test_upgrade' failed I had to add $(MHD_TLS_LIB_LDFLAGS) and $(MHD_TLS_LIBDEPS) to test_upgrade_LDADD and test_upgrade_tls_LDADD to the Makefile.am: diff --git a/src/microhttpd/Makefile.am b/src/microhttpd/Makefile.am index 22b6100d..1f4ffca3 100644 --- a/src/microhttpd/Makefile.am +++ b/src/microhttpd/Makefile.am @@ -224,6 +224,7 @@ test_upgrade_LDFLAGS = \ $(MHD_TLS_LIB_LDFLAGS) test_upgrade_LDADD = \ $(top_builddir)/src/microhttpd/libmicrohttpd.la \ + $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) \ $(PTHREAD_LIBS) test_upgrade_tls_SOURCES = \ @@ -236,6 +237,7 @@ test_upgrade_tls_LDFLAGS = \ $(MHD_TLS_LIB_LDFLAGS) test_upgrade_tls_LDADD = \ $(top_builddir)/src/microhttpd/libmicrohttpd.la \ + $(MHD_TLS_LIB_LDFLAGS) $(MHD_TLS_LIBDEPS) \ $(PTHREAD_LIBS) test_postprocessor_SOURCES = \ With that change, I’m able to correctly build, run and pass al the tests. Regards, Martxel -> patched as suggested
* update ignore fileChristian Grothoff2018-12-13
|
* reset timeout on response being queued, needed in thread-per-connection mode ↵Christian Grothoff2018-12-13
| | | | if the working thread takes very long
* add conn. close exampleChristian Grothoff2018-12-12
|
* brutally simplify VLA macro for stupid compilersChristian Grothoff2018-12-12
|
* avoid c99-style comments in examples, fix missed VLAChristian Grothoff2018-12-12
|
* remove requirement for VLA in digestauth.c logicChristian Grothoff2018-12-11
|
* Track socket CORK/NODELAY states to avoid extra syscallsEvgeny Grin (Karlson2k)2018-12-10
|
* connection.c: updated connection buffer control function to useEvgeny Grin (Karlson2k)2018-12-09
| | | | bool as return value. No change in processing logic.
* configure: fixed build for latest MinGWEvgeny Grin (Karlson2k)2018-12-09
|
* add JMChristian Grothoff2018-12-08
|
* use WSA_FLAG_OVERLAPPED in W32 sockets as per suggestion from Johnathan ↵Christian Grothoff2018-12-08
| | | | McDougall on the mailinglist
* pot updateChristian Grothoff2018-12-08
|
* releasing libmicrohttpd 0.9.62v0.9.62Christian Grothoff2018-12-08
|
* add test for RFC 7616 and document new APIChristian Grothoff2018-12-08
|
* preliminary implementation for RFC 7616 supportChristian Grothoff2018-12-08
|
* fix FTBFSChristian Grothoff2018-12-07
|
* add build option to compile MHD without threadsChristian Grothoff2018-12-07
|
* add build option to compile MHD without threadsChristian Grothoff2018-12-07
|
* Renamed all occurrences from _model(s)_ to _mode(s)_.silvioprog2018-12-06
|
* Optimized the function MHD_create_response_from_callback() for Windows by ↵silvioprog2018-12-06
| | | | increasing its internal buffer size and allowed to customize it via macro MHD_FD_BLOCK_SIZE.
* Referenced the gnutls_load_file() function in the HTTPs examples.silvioprog2018-12-06
|
* fix #5496:Christian Grothoff2018-12-05
| | | | '
* Improve parsing of HTTPS optionsJosé Bollo2018-12-05
| | | | | | | | | | | | | | | | The argument of the HTTPS options is now always extracted from the list of variable arguments. This removes strange errors like: MHD HTTPS option 8 passed to MHD but MHD_USE_TLS not set Invalid option 6313728! (Did you terminate the list with MHD_OPTION_END?) And allows to activate/deactivate HTTPS fairly by only setting or not the flag MHD_USE_TLS. Change-Id: I31acedbdefe9c930e94c7227d240a36d2a9000d5 Signed-off-by: José Bollo <jose.bollo@iot.bzh> Signed-off-by: Christian Grothoff <christian@grothoff.org>
* releasing 0.9.61Christian Grothoff2018-11-20
|
* import sha256 from GNU NettleChristian Grothoff2018-11-20
|
* avoid sprintfChristian Grothoff2018-11-18
|
* fix format string, prefer snprintfChristian Grothoff2018-11-18
|
* fix format string, prefer snprintfChristian Grothoff2018-11-18
|
* fix build issue with GnuTLS < 3.0Christian Grothoff2018-11-14
|
* From: Christian Hesse <mail@eworm.de>Christian Grothoff2018-11-12
| | | | | | | | | | | | | | | | | | | | | Date: Thu, 8 Nov 2018 00:15:29 +0100 Subject: [PATCH 1/1] fix tests with curl Starting with curl 7.62.0 some tests fail. The commit in question is 46e16406 [0] ("url: use the URL API internally as well"). Analyzing the changed behavior reveals that the url given to curl_easy_setopt() with CURLOPT_URL is no longer encoded. Looking at the documentation [1] this behavior is correct, the "parameter should be a char * to a zero terminated string which must be URL-encoded [...]". So let's just give a valid url... [0] https://github.com/curl/curl/commit/46e164069d1a5230e4e64cbd2ff46c46cce056bb [1] https://curl.haxx.se/libcurl/c/CURLOPT_URL.html Signed-off-by: Christian Hesse <mail@eworm.de> Signed-off: CG
* fix ftbfsChristian Grothoff2018-11-12
|
* add MHD_create_response_from_buffer_with_free_callbackChristian Grothoff2018-11-08
|\
| * releasing libmicrohttpd 0.9.60v0.9.60Christian Grothoff2018-11-06
| |
* | add MHD_create_response_from_buffer_with_free_callbackChristian Grothoff2018-11-08
|/
* initialize epoll_fd even if we have no listen fd, patch by Jose BolloChristian Grothoff2018-11-01
|
* force setting MHD_USE_ITC if using thread-per-connection and ↵Christian Grothoff2018-10-29
| | | | notify_completed for timely notifications
* fix possibly bad clearing of client_aware flagChristian Grothoff2018-10-29
|
* notify main thread about thread termination for instant clean upChristian Grothoff2018-10-20
|
* add --enable-experiemental option to not compile src/lib/ unless explicitly ↵Christian Grothoff2018-10-18
| | | | requested
* From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>Christian Grothoff2018-10-18
| | | | | | | | | | | | | | | | | | | | | | | | | 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. ---
* From: Gauthier Haderer <ghaderer@wyplay.com>Christian Grothoff2018-10-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* improve comments, cosmeticsilvioprog2018-10-09
|
* Style fixes.silvioprog2018-10-09
|
* fix #5411Christian Grothoff2018-10-05
|