diff --git a/ChangeLog b/ChangeLog index 9ad82c78..0f6fb3eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun 27 Sep 2020 10:08:03 PM CEST + Fixed incorrect triggering of epoll edge polling for + "upgraded" TLS connections. Fixed a few cases where + gnutls_record_uncork() return value was still ignored, + possibly causing buffer to not be flushed correctly. -CG + Sat 26 Sep 2020 08:18:02 PM CEST Make MHD_USE_NO_LISTEN_SOCKET work in conjunction with MHD internal threads. -CG/DE diff --git a/src/examples/connection_close.c b/src/examples/connection_close.c index fb9f77d9..b0314dea 100644 --- a/src/examples/connection_close.c +++ b/src/examples/connection_close.c @@ -102,10 +102,10 @@ main (int argc, char *const *argv) return 1; } d = MHD_start_daemon (/* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */ - /* MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */ - /* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, */ + /* MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */ + /* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, */ MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD - | MHD_USE_ERROR_LOG | MHD_USE_POLL, // | MHD_USE_ITC, + | MHD_USE_ERROR_LOG | MHD_USE_POLL, // | MHD_USE_ITC, /* MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */ atoi (argv[1]), NULL, NULL, &ahc_echo, PAGE, diff --git a/src/examples/demo.c b/src/examples/demo.c index 1830d3b0..9f1beda3 100644 --- a/src/examples/demo.c +++ b/src/examples/demo.c @@ -283,11 +283,11 @@ list_directory (struct ResponseDataContext *rdc, snprintf (fullname, sizeof (fullname), "%s/%s", dirname, de->d_name)) - continue; /* ugh, file too long? how can this be!? */ + continue; /* ugh, file too long? how can this be!? */ if (0 != stat (fullname, &sbuf)) - continue; /* ugh, failed to 'stat' */ + continue; /* ugh, failed to 'stat' */ if (! S_ISREG (sbuf.st_mode)) - continue; /* not a regular file, skip */ + continue; /* not a regular file, skip */ if (rdc->off + 1024 > rdc->buf_len) { void *r; diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c index 69922136..205bc863 100644 --- a/src/examples/demo_https.c +++ b/src/examples/demo_https.c @@ -286,11 +286,11 @@ list_directory (struct ResponseDataContext *rdc, snprintf (fullname, sizeof (fullname), "%s/%s", dirname, de->d_name)) - continue; /* ugh, file too long? how can this be!? */ + continue; /* ugh, file too long? how can this be!? */ if (0 != stat (fullname, &sbuf)) - continue; /* ugh, failed to 'stat' */ + continue; /* ugh, failed to 'stat' */ if (! S_ISREG (sbuf.st_mode)) - continue; /* not a regular file, skip */ + continue; /* not a regular file, skip */ if (rdc->off + 1024 > rdc->buf_len) { void *r; diff --git a/src/examples/fileserver_example.c b/src/examples/fileserver_example.c index 767810f9..94c2ca95 100644 --- a/src/examples/fileserver_example.c +++ b/src/examples/fileserver_example.c @@ -69,13 +69,13 @@ ahc_echo (void *cls, *ptr = &aptr; return MHD_YES; } - *ptr = NULL; /* reset when done */ + *ptr = NULL; /* reset when done */ /* WARNING: direct usage of url as filename is for example only! * NEVER pass received data directly as parameter to file manipulation * functions. Always check validity of data before using. */ if (NULL != strstr (url, "../")) /* Very simplified check! */ - fd = -1; /* Do not allow usage of parent directories. */ + fd = -1; /* Do not allow usage of parent directories. */ else fd = open (url + 1, O_RDONLY); if (-1 != fd) diff --git a/src/examples/websocket_threaded_example.c b/src/examples/websocket_threaded_example.c index 44cb3493..13e75dab 100644 --- a/src/examples/websocket_threaded_example.c +++ b/src/examples/websocket_threaded_example.c @@ -36,40 +36,40 @@ "