https://issues.apache.org/bugzilla/show_bug.cgi?id=55666

--- Comment #15 from Yann Ylavic <[email protected]> ---
Created attachment 30976
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30976&action=edit
inflate input filter with non-blocking read (trunk 4/6)

Patch 4. In the inflate input filter, return immediatly when a non-blocking
read would block.

Note that a non-blocking read which would block while reading the ZLib header
is handled by patch 2 with :

+        rv = ap_get_brigade(f->next, ctx->bb, AP_MODE_READBYTES, block,
+                            len);
+
+        /* ap_get_brigade may return success with an empty brigade for
+         * a non-blocking read which would block (an empty brigade for
+         * a blocking read is an issue which is simply forwarded here).
+         */
+        if (rv != APR_SUCCESS || APR_BRIGADE_EMPTY(ctx->bb)) {
             return rv;
         }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to