httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50481] mod_proxy with SSLProxyEngine truncates files fetched with chunked encoding
Date Mon, 20 Dec 2010 13:24:26 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50481

Ruediger Pluem <rpluem@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #2 from Ruediger Pluem <rpluem@apache.org> 2010-12-20 08:24:23 EST ---
Thank you for the excellent report, analysis and test case. Can you please try
if the following patch fixes your issue?

Index: modules/ssl/ssl_engine_io.c
===================================================================
--- modules/ssl/ssl_engine_io.c (revision 1051073)
+++ modules/ssl/ssl_engine_io.c (working copy)
@@ -749,6 +749,10 @@
         status = ssl_io_input_read(inctx, buf + offset, &tmplen);

         if (status != APR_SUCCESS) {
+            if (APR_STATUS_IS_EAGAIN(status) && (*len > 0)) {
+                /* Safe the part of the line we already got */
+                char_buffer_write(&inctx->cbuf, buf, *len);
+            }
             return status;
         }

@@ -775,6 +779,10 @@

         *len = bytes;
     }
+    else {
+        /* Safe the part of the line we already got */
+        char_buffer_write(&inctx->cbuf, buf, *len);
+    }

     return APR_SUCCESS;
 }

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message