From 3663a64d3c510409b748db2d74dd3035cdc8fbba Mon Sep 17 00:00:00 2001 From: Brian Havard Date: Mon, 20 Aug 2001 10:56:44 +0000 Subject: [PATCH] Make test for EAGAIN portable in content length filter. This fixes some 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/protocol.c b/server/protocol.c index a832ada172..0762861002 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -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. */ -- 2.40.0