[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 144/154: connection.c: remove dead code
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 144/154: connection.c: remove dead code |
Date: |
Mon, 19 Aug 2019 10:17:36 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository libmicrohttpd.
commit bdb2e3ea6fae1198e32fe4bfe8aadefc6689b1c3
Author: ng0 <address@hidden>
AuthorDate: Fri Aug 2 17:54:57 2019 +0000
connection.c: remove dead code
---
src/microhttpd/connection.c | 25 +++----------------------
1 file changed, 3 insertions(+), 22 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 97db6378..0447525b 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -323,19 +323,6 @@ socket_start_extra_buffering (struct MHD_Connection
*connection)
}
-/**
- * Activate no buffering mode (no delay sending) on connection socket.
- *
- * @param connection connection to be processed
- * @return true on success, false otherwise
- */
-_MHD_static_inline bool
-socket_start_no_buffering (struct MHD_Connection *connection)
-{
-
-}
-
-
/**
* Activate no buffering mode (no delay sending) on connection socket
* and push to client data pending in socket buffer.
@@ -350,7 +337,7 @@ socket_start_no_buffering_flush (struct MHD_Connection
*connection)
#if defined(TCP_NOPUSH) && !defined(TCP_CORK)
const int dummy = 0;
#endif /* !TCP_CORK */
- res = socket_start_no_buffering (connection); /* REMOVE: Dead */
+
#if defined(__FreeBSD__) && __FreeBSD__+0 >= 9
/* FreeBSD do not need zero-send for flushing starting from version 9 */
#elif defined(TCP_NOPUSH) && !defined(TCP_CORK)
@@ -3461,8 +3448,6 @@ MHD_connection_handle_idle (struct MHD_Connection
*connection)
connection->state = MHD_CONNECTION_CONTINUE_SENDING;
if (socket_flush_possible (connection))
socket_start_extra_buffering (connection); /* REMOVE: Dead */
- else
- socket_start_no_buffering (connection); /* REMOVE: Dead */
break;
}
@@ -3593,8 +3578,6 @@ MHD_connection_handle_idle (struct MHD_Connection
*connection)
connection->state = MHD_CONNECTION_HEADERS_SENDING;
if (socket_flush_possible (connection))
socket_start_extra_buffering (connection); /* REMOVE: Dead */
- else
- socket_start_no_buffering (connection); /* REMOVE: Dead */
break;
case MHD_CONNECTION_HEADERS_SENDING:
@@ -3665,8 +3648,7 @@ MHD_connection_handle_idle (struct MHD_Connection
*connection)
#endif
connection->state = MHD_CONNECTION_NORMAL_BODY_READY;
/* Buffering for flushable socket was already enabled*/
- if (socket_flush_possible (connection))
- socket_start_no_buffering (connection); /* REMOVE: Dead */
+
break;
}
/* mutex was already unlocked by "try_ready_normal_body */
@@ -3699,8 +3681,7 @@ MHD_connection_handle_idle (struct MHD_Connection
*connection)
#endif
connection->state = MHD_CONNECTION_CHUNKED_BODY_READY;
/* Buffering for flushable socket was already enabled */
- if (socket_flush_possible (connection))
- socket_start_no_buffering (connection); /* REMOVE: Dead */
+
continue;
}
/* mutex was already unlocked by try_ready_chunked_body */
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [GNUnet-SVN] [libmicrohttpd] 133/154: properly handle return value from send_on_connection2, (continued)
- [GNUnet-SVN] [libmicrohttpd] 133/154: properly handle return value from send_on_connection2, gnunet, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 130/154: always set nodelay, except if we cannot cork, gnunet, 2019/08/19
- [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 <=
- [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, 2019/08/19
- [GNUnet-SVN] [libmicrohttpd] 140/154: Mark function calls which could be removed as dead code., gnunet, 2019/08/19