serf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1711756 - /serf/trunk/buckets/aggregate_buckets.c
Date Sun, 01 Nov 2015 13:22:57 GMT
Author: rhuijben
Date: Sun Nov  1 13:22:57 2015
New Revision: 1711756

URL: http://svn.apache.org/viewvc?rev=1711756&view=rev
Log:
* buckets/aggregate_buckets.c
  (serf_aggregate_readline,
   serf_aggregate_peek): Check eof like we do in other places.

Modified:
    serf/trunk/buckets/aggregate_buckets.c

Modified: serf/trunk/buckets/aggregate_buckets.c
URL: http://svn.apache.org/viewvc/serf/trunk/buckets/aggregate_buckets.c?rev=1711756&r1=1711755&r2=1711756&view=diff
==============================================================================
--- serf/trunk/buckets/aggregate_buckets.c (original)
+++ serf/trunk/buckets/aggregate_buckets.c Sun Nov  1 13:22:57 2015
@@ -395,7 +395,7 @@ static apr_status_t serf_aggregate_readl
         if (SERF_BUCKET_READ_ERROR(status))
             return status;
 
-        if (status == APR_EOF) {
+        if (APR_STATUS_IS_EOF(status)) {
             bucket_list_t *next_list;
 
             /* head bucket is empty, move to to-be-cleaned-up list. */
@@ -453,7 +453,7 @@ static apr_status_t serf_aggregate_peek(
 
     status = serf_bucket_peek(head, data, len);
 
-    if (status == APR_EOF) {
+    if (APR_STATUS_IS_EOF(status)) {
         if (ctx->list->next) {
             status = APR_SUCCESS;
         } else {



Mime
View raw message