--- httpd-2.2.17/modules/ssl/ssl_engine_io.c.orig	2010-08-10 15:08:27.000000000 -0400
+++ httpd-2.2.17/modules/ssl/ssl_engine_io.c	2011-02-24 10:51:48.000000000 -0500
@@ -749,6 +749,10 @@ static apr_status_t ssl_io_input_getline
         status = ssl_io_input_read(inctx, buf + offset, &tmplen);
 
         if (status != APR_SUCCESS) {
+            if (APR_STATUS_IS_EAGAIN(status) && (*len != 0)) {
+                /* Save the part of the line we already got */
+                char_buffer_write(&inctx->cbuf, buf, (int)*len);
+            }
             return status;
         }
 
@@ -775,6 +779,10 @@ static apr_status_t ssl_io_input_getline
 
         *len = bytes;
     }
+    else {
+        /* Save the part of the line we already got */
+        char_buffer_write(&inctx->cbuf, buf, (int)*len);
+    }
 
     return APR_SUCCESS;
 }
