libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 1d9f940dca89a5ee95a3247e43440ebd16c903af
parent efd1dd05f42d5934494dbda4f63328b8f1080427
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 26 Sep 2020 20:23:01 +0200

fix thread-start issue discovered by Damon Earp

Diffstat:
MChangeLog | 4++++
Msrc/include/microhttpd.h | 2+-
Msrc/microhttpd/daemon.c | 3++-
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,7 @@ +Sat 26 Sep 2020 08:18:02 PM CEST + Make MHD_USE_NO_LISTEN_SOCKET work in conjunction with + MHD internal threads. -CG/DE + Fri 11 Sep 2020 10:08:22 PM CEST Fix crash problem in PostProcessor reported by MD. -CG Fix GnuTLS configure test to check for gnutls_record_uncork. -CG diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -132,7 +132,7 @@ typedef intptr_t ssize_t; * Current version of the library. * 0x01093001 = 1.9.30-1. */ -#define MHD_VERSION 0x00097103 +#define MHD_VERSION 0x00097104 /** * Operational results from MHD calls. diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -6427,7 +6427,8 @@ MHD_start_daemon_va (unsigned int flags, #endif /* HTTPS_SUPPORT */ #if defined(MHD_USE_POSIX_THREADS) || defined(MHD_USE_W32_THREADS) if ( (0 != (*pflags & MHD_USE_INTERNAL_POLLING_THREAD)) && - (0 == (*pflags & MHD_USE_NO_LISTEN_SOCKET)) ) + ( (0 == (*pflags & MHD_USE_NO_LISTEN_SOCKET)) || + (MHD_ITC_IS_VALID_ (daemon->itc)) ) ) { if (0 == daemon->worker_pool_size) {