Blame SOURCES/httpd-2.4.6-ab-ssl-error.patch

07ea28
diff --git a/support/ab.c b/support/ab.c
07ea28
index bf76406..80c1b74 100644
07ea28
--- a/support/ab.c
07ea28
+++ b/support/ab.c
07ea28
@@ -1346,11 +1346,21 @@ static void read_connection(struct connection * c)
07ea28
                      && good == 0) {
07ea28
                 return;
07ea28
             }
07ea28
+            else if (scode == SSL_ERROR_SYSCALL
07ea28
+                     && status == 0
07ea28
+                     && c->read != 0) {
07ea28
+                /* connection closed, but in violation of the protocol, after
07ea28
+                 * some data has already been read; this commonly happens, so
07ea28
+                 * let the length check catch any response errors
07ea28
+                 */
07ea28
+                good++;
07ea28
+                close_connection(c);
07ea28
+            }
07ea28
             else if (scode != SSL_ERROR_WANT_WRITE
07ea28
                      && scode != SSL_ERROR_WANT_READ) {
07ea28
                 /* some fatal error: */
07ea28
                 c->read = 0;
07ea28
-                BIO_printf(bio_err, "SSL read failed (%d) - closing connection\n", scode);
07ea28
+                BIO_printf(bio_err, "SSL read failed (%d) - closing connection\n", scode);
07ea28
                 ERR_print_errors(bio_err);
07ea28
                 close_connection(c);
07ea28
             }