move from a loop to read all the POST request to a single get to allow the server...
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Wed, 20 Feb 2013 08:06:10 +0000 (09:06 +0100)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Wed, 20 Feb 2013 08:06:10 +0000 (09:06 +0100)
mod_proxy_fdpass.c

index 90137e4..29b89db 100644 (file)
@@ -286,8 +286,8 @@ int util_read(request_rec *r, const char **rbuf)
         int rsize, len_read, rpos=0;
         long length = r->remaining;
         *rbuf = (char *)apr_pcalloc(r->pool, length +1);
-        while ((len_read = ap_get_client_block(r, argsbuffer,
-sizeof(argsbuffer))) > 0) {
+        if ((len_read = ap_get_client_block(r, argsbuffer,
+                                            sizeof(argsbuffer))) > 0) {
             if ((rpos + len_read) > length) {
                 rsize = length - rpos;
             } else {