Commit 90b9271e authored by Justin Erenkrantz's avatar Justin Erenkrantz
Browse files

For some reason, I was thinking PEEK should read infinitely. Not.

Return with APR_EOF if we get EAGAIN.

(Whomever is calling this with PEEK should really be able to handle EOS
 bucket rather than relying on error codes.)

Thanks to Greg Ames for pointing out this fubar.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91403 13f79535-47bb-0310-9956-ffa450edef68
parent 9103e6e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2806,7 +2806,7 @@ static int core_input_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mod
            rv = apr_bucket_read(e, &str, &len, APR_NONBLOCK_READ);

            if (APR_STATUS_IS_EAGAIN(rv)) {
                continue;
                return APR_EOF;
            }
            else if (rv != APR_SUCCESS)
                return rv;