[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] branch master updated: fix build issue if H
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] branch master updated: fix build issue if HAVE_MESSAGES is not set |
Date: |
Sat, 07 Jan 2017 11:52:58 +0100 |
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 f3b0eb5 fix build issue if HAVE_MESSAGES is not set
f3b0eb5 is described below
commit f3b0eb539e8a0e87745dc53eabe507b98f1864b6
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Jan 7 11:52:53 2017 +0100
fix build issue if HAVE_MESSAGES is not set
---
src/microhttpd/connection.c | 9 +++++++++
src/microhttpd/daemon.c | 6 ++++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index e6a26ef..23fde22 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3111,6 +3111,15 @@ MHD_connection_handle_idle (struct MHD_Connection
*connection)
/* no default action */
break;
case MHD_CONNECTION_FOOTERS_SENT:
+ if (MHD_HTTP_PROCESSING == connection->response->status_code)
+ {
+ /* After this type of response, we allow sending another! */
+ connection->state = MHD_CONNECTION_HEADERS_PROCESSED;
+ MHD_destroy_response (connection->response);
+ connection->response = NULL;
+ /* FIXME: maybe partially reset memory pool? */
+ continue;
+ }
if (MHD_NO != socket_flush_possible (connection))
socket_start_no_buffering_flush (connection);
else
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 97640ba..664bb90 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -2541,10 +2541,12 @@ resume_suspended_connections (struct MHD_Daemon *daemon)
{ /* Wake up suspended connections. */
if (! MHD_itc_activate_(daemon->itc,
"w"))
+ {
#ifdef HAVE_MESSAGES
- MHD_DLOG (daemon,
- _("Failed to signal resume of connection via inter-thread
communication channel."));
+ MHD_DLOG (daemon,
+ _("Failed to signal resume of connection via inter-thread
communication channel."));
#endif
+ }
}
return ret;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libmicrohttpd] branch master updated: fix build issue if HAVE_MESSAGES is not set,
gnunet <=