fix thread-start issue discovered by Damon Earp

This commit is contained in:
Christian Grothoff
2020-09-26 20:23:21 +02:00
parent efd1dd05f4
commit 1d9f940dca
3 changed files with 7 additions and 2 deletions
+4
View File
@@ -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
+1 -1
View File
@@ -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.
+2 -1
View File
@@ -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)
{