[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 01/02: Fixed sending responses >16KiB in HT
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 01/02: Fixed sending responses >16KiB in HTTPS mode with epoll |
Date: |
Fri, 08 Sep 2017 21:04:52 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 3474e1b7f9bf7bdbde47d13c59961508bcd273da
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Fri Sep 8 22:02:47 2017 +0300
Fixed sending responses >16KiB in HTTPS mode with epoll
---
ChangeLog | 7 +++++++
src/microhttpd/connection_https.c | 6 +++---
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b4517d2f..b400bb65 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Tue Sep 08 21:39:00 MSK 2017
+ Fixed build of examples when MHD build with non-pthread lib.
+ MHD_queue_response(): added check for using in correct thread.
+ Fixed sending responses larger 16 KiB in TLS mode with epoll.
+ Improved doxy for MHD_get_timeout() and related functions.
+ Minor internal refactoring. -EG
+
Tue Jul 23 11:32:00 MSK 2017
Updated chunked_example.c to provide real illustration of usage of
chunked encoding. -EG
diff --git a/src/microhttpd/connection_https.c
b/src/microhttpd/connection_https.c
index 03f80b8c..2b9e9eca 100644
--- a/src/microhttpd/connection_https.c
+++ b/src/microhttpd/connection_https.c
@@ -128,9 +128,9 @@ send_tls_adapter (struct MHD_Connection *connection,
return MHD_ERR_NOTCONN_;
}
#ifdef EPOLL_SUPPORT
- /* If NOT all available data was sent - socket is not write ready anymore. */
- if (i > (size_t)res)
- connection->epoll_state &= ~MHD_EPOLL_STATE_WRITE_READY;
+ /* Unlike non-TLS connections, do not reset "write-ready" if
+ * sent smaller amount than provided, as TLS connections may
+ * break data into smaller parts for sending. */
#endif /* EPOLL_SUPPORT */
return res;
}
--
To stop receiving notification emails like this one, please contact
address@hidden