]> granicus.if.org Git - apache/commitdiff
Make test for EAGAIN portable in content length filter. This fixes some
authorBrian Havard <bjh@apache.org>
Mon, 20 Aug 2001 10:56:44 +0000 (10:56 +0000)
committerBrian Havard <bjh@apache.org>
Mon, 20 Aug 2001 10:56:44 +0000 (10:56 +0000)
failures in CGIs on OS/2.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90394 13f79535-47bb-0310-9956-ffa450edef68

server/protocol.c

index a832ada172858bfc2fa9d77a586b5cf37e6c5a15..0762861002e56006f97dd655f6043721b85a031d 100644 (file)
@@ -916,7 +916,7 @@ AP_CORE_DECLARE_NONSTD(apr_status_t) ap_content_length_filter(ap_filter_t *f,
                     /* Attempt a nonblocking read next time through */
                     eblock = APR_NONBLOCK_READ;
                 }
-                else if (rv == APR_EAGAIN) {
+                else if (APR_STATUS_IS_EAGAIN(rv)) {
                     /* Make the next read blocking.  If the client supports chunked
                      * encoding, flush the filter stack to the network.
                      */