[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 02/05: MHD_get_connection_info(): fixed ret
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 02/05: MHD_get_connection_info(): fixed returned 'bool' which is not a member of union MHD_ConnectionInfo |
Date: |
Sun, 21 May 2017 17:56:13 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit a3519410eee2b11c813d97872724b1394480eea4
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun May 21 17:27:31 2017 +0300
MHD_get_connection_info(): fixed returned 'bool' which is not a member of
union MHD_ConnectionInfo
---
src/microhttpd/connection.c | 3 ++-
src/microhttpd/internal.h | 5 +++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index aebfb7b2..5fdc6837 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3486,7 +3486,8 @@ MHD_get_connection_info (struct MHD_Connection
*connection,
case MHD_CONNECTION_INFO_SOCKET_CONTEXT:
return (const union MHD_ConnectionInfo *) &connection->socket_context;
case MHD_CONNECTION_INFO_CONNECTION_SUSPENDED:
- return (const union MHD_ConnectionInfo *) &connection->suspended;
+ connection->suspended_dummy = connection->suspended ? MHD_YES : MHD_NO;
+ return (const union MHD_ConnectionInfo *) &connection->suspended_dummy;
case MHD_CONNECTION_INFO_CONNECTION_TIMEOUT:
connection->connection_timeout_dummy = (unsigned
int)connection->connection_timeout;
return (const union MHD_ConnectionInfo *)
&connection->connection_timeout_dummy;
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index ac8f7330..ac7531f1 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -996,6 +996,11 @@ struct MHD_Connection
bool suspended;
/**
+ * Special member to be returned by #MHD_get_connection_info()
+ */
+ int suspended_dummy;
+
+ /**
* Is the connection wanting to resume?
*/
bool resuming;
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [libmicrohttpd] branch master updated (c13d2767 -> 0ecf4f26), gnunet, 2017/05/21
- [GNUnet-SVN] [libmicrohttpd] 01/05: Removed leftover comment, gnunet, 2017/05/21
- [GNUnet-SVN] [libmicrohttpd] 02/05: MHD_get_connection_info(): fixed returned 'bool' which is not a member of union MHD_ConnectionInfo,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 05/05: resume_suspended_connections(): do not update connection state during resuming, handle update of states in main loop as handling of locking can significantly increase complexity of processing in resume_suspended_connections(). This revert 16da279752e54c616edcb485ea637234101447c9, but resumed connections in epoll mode are processed already faster after 534d586422c6eba94ae1b193338138cb2abce3cf., gnunet, 2017/05/21
- [GNUnet-SVN] [libmicrohttpd] 04/05: cleanup_connection(): fixed cleanup of suspended connection, gnunet, 2017/05/21
- [GNUnet-SVN] [libmicrohttpd] 03/05: close_connection(): added two EXTRA_CHECKs, gnunet, 2017/05/21