[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] branch master updated: handle gnutls_record_uncork() fai
From: |
gnunet |
Subject: |
[libmicrohttpd] branch master updated: handle gnutls_record_uncork() failure, might help issue PC reported on the list |
Date: |
Tue, 16 Jun 2020 20:52:00 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new 0d771f77 handle gnutls_record_uncork() failure, might help issue PC
reported on the list
0d771f77 is described below
commit 0d771f770e6c444cfee7f4f588620e9c8b934d97
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Tue Jun 16 20:46:32 2020 +0200
handle gnutls_record_uncork() failure, might help issue PC reported on the
list
---
ChangeLog | 3 +++
src/microhttpd/mhd_send.c | 5 ++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index a8940d51..693abad3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+Tue 16 Jun 2020 08:44:22 PM CEST
+ Add logic to try again if GNUtls uncork() fails. -CG
+
Wed 10 Jun 2020 09:44:29 PM CEST
Fixed PostProcessor bug discovered by MD, which given certain parser
boundaries caused the returned values to be wrong. -CG/MD
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 0864d532..1ff45231 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -313,7 +313,10 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
if (! want_cork && have_cork)
{
- (void) gnutls_record_uncork (connection->tls_session, 0);
+ int err = gnutls_record_uncork (connection->tls_session, 0);
+
+ if (0 > err)
+ return MHD_ERR_AGAIN_;
connection->sk_cork_on = false;
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libmicrohttpd] branch master updated: handle gnutls_record_uncork() failure, might help issue PC reported on the list,
gnunet <=