commit f8070814c6871bc50d7964a3c88d2a6c03be9c0e
parent 8e06dbedccb4876b8f86770e0b986c624bf8aaf1
Author: ng0 <ng0@n0.is>
Date: Fri, 2 Aug 2019 18:06:52 +0000
remove code
Diffstat:
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -353,19 +353,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.
*
* @param connection connection to get values from
@@ -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;