[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 03/15: New values for MHD_ConnectionEventLoopInfo
From: |
gnunet |
Subject: |
[libmicrohttpd] 03/15: New values for MHD_ConnectionEventLoopInfo |
Date: |
Fri, 28 Oct 2022 11:21: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 571ec180781a55a63007d97bad9755265b282ebf
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Oct 20 19:20:01 2022 +0300
New values for MHD_ConnectionEventLoopInfo
---
src/microhttpd/connection.c | 1 +
src/microhttpd/daemon.c | 1 +
src/microhttpd/internal.h | 8 ++++----
3 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 30260402..2056fe3d 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -4741,6 +4741,7 @@ connection_reset (struct MHD_Connection *connection,
c->keepalive = MHD_CONN_KEEPALIVE_UNKOWN;
c->state = MHD_CONNECTION_INIT;
+ c->event_loop_info = MHD_EVENT_LOOP_INFO_READ;
memset (&c->rq, 0, sizeof(c->rq));
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 60aa2471..59a7d7e1 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -2530,6 +2530,7 @@ new_connection_prepare_ (struct MHD_Daemon *daemon,
connection->sk_spipe_suppress = sk_spipe_supprs;
connection->daemon = daemon;
connection->connection_timeout_ms = daemon->connection_timeout_ms;
+ connection->event_loop_info = MHD_EVENT_LOOP_INFO_READ;
if (0 != connection->connection_timeout_ms)
connection->last_activity = MHD_monotonic_msec_counter ();
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 6a88177e..6a94faea 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -214,22 +214,22 @@ enum MHD_ConnectionEventLoopInfo
/**
* We are waiting to be able to read.
*/
- MHD_EVENT_LOOP_INFO_READ = 0,
+ MHD_EVENT_LOOP_INFO_READ = 1 << 0,
/**
* We are waiting to be able to write.
*/
- MHD_EVENT_LOOP_INFO_WRITE = 1,
+ MHD_EVENT_LOOP_INFO_WRITE = 1 << 1,
/**
* We are waiting for the application to provide data.
*/
- MHD_EVENT_LOOP_INFO_BLOCK = 2,
+ MHD_EVENT_LOOP_INFO_BLOCK = 1 << 2,
/**
* We are finished and are awaiting cleanup.
*/
- MHD_EVENT_LOOP_INFO_CLEANUP = 3
+ MHD_EVENT_LOOP_INFO_CLEANUP = 1 << 3
} _MHD_FIXED_ENUM;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (5e0c2223 -> 9f4a08a8), gnunet, 2022/10/28
- [libmicrohttpd] 03/15: New values for MHD_ConnectionEventLoopInfo,
gnunet <=
- [libmicrohttpd] 12/15: test_head: added check for excess data in reply, gnunet, 2022/10/28
- [libmicrohttpd] 04/15: Added new state for MHD_ConnectionEventLoopInfo, gnunet, 2022/10/28
- [libmicrohttpd] 14/15: postprocessor.h: fixed typos in doxy, gnunet, 2022/10/28
- [libmicrohttpd] 11/15: testcurl: added test with Content-Length broken value in request, gnunet, 2022/10/28
- [libmicrohttpd] 08/15: Do not send "100 Continue" if part of the request body is already received, gnunet, 2022/10/28
- [libmicrohttpd] 01/15: Added ability to check for MHD debug builds at run-time, gnunet, 2022/10/28
- [libmicrohttpd] 02/15: Added check for hypothetical too large accepted sockets addresses, gnunet, 2022/10/28
- [libmicrohttpd] 13/15: test_head: check libcurl for timeout value, gnunet, 2022/10/28
- [libmicrohttpd] 06/15: Renamed one more connection state for clarity, gnunet, 2022/10/28
- [libmicrohttpd] 05/15: Renamed one state in MHD_ConnectionEventLoopInfo for clarity, gnunet, 2022/10/28