diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 0d7ba27b..cf22f41b 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -1128,6 +1128,9 @@ keepalive_possible (struct MHD_Connection *connection) | |||
1128 | { | 1128 | { |
1129 | if (MHD_CONN_MUST_CLOSE == connection->keepalive) | 1129 | if (MHD_CONN_MUST_CLOSE == connection->keepalive) |
1130 | return MHD_NO; | 1130 | return MHD_NO; |
1131 | /* TODO: use additional flags, like "error_closure" */ | ||
1132 | if (connection->read_closed) | ||
1133 | return MHD_NO; | ||
1131 | if ( (NULL != connection->response) && | 1134 | if ( (NULL != connection->response) && |
1132 | (0 != (connection->response->flags & MHD_RF_HTTP_VERSION_1_0_ONLY) ) ) | 1135 | (0 != (connection->response->flags & MHD_RF_HTTP_VERSION_1_0_ONLY) ) ) |
1133 | return MHD_NO; | 1136 | return MHD_NO; |