[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 146/154: remove code
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 146/154: remove code |
Date: |
Mon, 19 Aug 2019 10:17:38 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository libmicrohttpd.
commit f8070814c6871bc50d7964a3c88d2a6c03be9c0e
Author: ng0 <address@hidden>
AuthorDate: Fri Aug 2 18:06:52 2019 +0000
remove code
---
src/microhttpd/connection.c | 22 +---------------------
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 5c825b85..7b630b77 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -352,19 +352,6 @@ socket_start_no_buffering_flush (struct MHD_Connection
*connection)
}
-/**
- * Activate normal buffering mode on connection socket.
- *
- * @param connection connection to be processed
- * @return true on success, false otherwise
- */
-_MHD_static_inline bool
-socket_start_normal_buffering (struct MHD_Connection *connection)
-{
- mhd_assert(NULL != connection);
-}
-
-
/**
* Get all of the headers from the request.
*
@@ -3471,8 +3458,6 @@ MHD_connection_handle_idle (struct MHD_Connection
*connection)
connection->state = MHD_CONNECTION_CONTINUE_SENT;
if (socket_flush_possible (connection))
socket_start_no_buffering_flush (connection); /* REMOVE: Dead
*/
- else
- socket_start_normal_buffering (connection); /* REMOVE: Dead */
continue;
}
@@ -3585,7 +3570,6 @@ MHD_connection_handle_idle (struct MHD_Connection
*connection)
#ifdef UPGRADE_SUPPORT
if (NULL != connection->response->upgrade_handler)
{
- socket_start_normal_buffering (connection); /* REMOVE: Dead */
connection->state = MHD_CONNECTION_UPGRADE;
/* This connection is "upgraded". Pass socket to application. */
if (MHD_YES !=
@@ -3607,7 +3591,6 @@ MHD_connection_handle_idle (struct MHD_Connection
*connection)
continue;
}
#endif /* UPGRADE_SUPPORT */
- socket_start_normal_buffering (connection); /* REMOVE: Dead */
if (connection->have_chunked_upload)
connection->state = MHD_CONNECTION_CHUNKED_BODY_UNREADY;
@@ -3707,8 +3690,6 @@ MHD_connection_handle_idle (struct MHD_Connection
*connection)
}
if (socket_flush_possible (connection))
socket_start_no_buffering_flush (connection); /* REMOVE: Dead */
- else
- socket_start_normal_buffering (connection); /* REMOVE: Dead */
MHD_destroy_response (connection->response);
connection->response = NULL;
@@ -3736,8 +3717,7 @@ MHD_connection_handle_idle (struct MHD_Connection
*connection)
else
{
/* can try to keep-alive */
- if (socket_flush_possible (connection))
- socket_start_normal_buffering (connection); /* REMOVE: Dead */
+
connection->version = NULL;
connection->state = MHD_CONNECTION_INIT;
connection->last = NULL;
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [libmicrohttpd] 135/154: add ways for application to control corking for upgraded sockets, (continued)
- [GNUnet-SVN] [libmicrohttpd] 135/154: add ways for application to control corking for upgraded sockets, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 138/154: mhd_send: fix failure to build, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 136/154: do it in both tests, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 139/154: Rename senfile_adapter to MHD_send_sendfile_ and remove duplicate prototype., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 151/154: mhd_send.c: for now, let EINVAL and EBADF fail hard., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 152/154: connection.c: remove dead code., gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 154/154: Revert "connection.c: remove dead code.", gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 114/154: writev check, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 144/154: connection.c: remove dead code, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 153/154: Revert "mhd_send.c: for now, let EINVAL and EBADF fail hard.", gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 146/154: remove code,
gnunet <=
- [GNUnet-SVN] [libmicrohttpd] 140/154: Mark function calls which could be removed as dead code., gnunet, 2019/08/19