Author: rhuijben Date: Wed Nov 4 02:13:20 2015 New Revision: 1712456 URL: http://svn.apache.org/viewvc?rev=1712456&view=rev Log: * buckets/aggregate_buckets.c (read_aggregate): Add 'magic' refill support via the hold_open callback. when reading an iovec. In the http2 usage this might just continue with the next data frame.
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=1712456&r1=1712455&r2=1712456&view=diff ============================================================================== --- serf/trunk/buckets/aggregate_buckets.c (original) +++ serf/trunk/buckets/aggregate_buckets.c Wed Nov 4 02:13:20 2015 @@ -294,7 +294,10 @@ static apr_status_t read_aggregate(serf_ /* If we have no more in our list, return EOF. */ if (!ctx->list) { if (ctx->hold_open) { - return ctx->hold_open(ctx->hold_open_baton, bucket); + status = ctx->hold_open(ctx->hold_open_baton, bucket); + if (status || !ctx->list) + return status; + /* Wow, we 'magically' refilled! */ } else { return APR_EOF;