View | Details | Raw Unified | Return to bug 55475
Collapse All | Expand All

(-)modules/http/http_filters.c (-1 / +15 lines)
Lines 352-357 apr_status_t ap_http_filter(ap_filter_t *f, apr_bu Link Here
352
                return APR_EAGAIN;
352
                return APR_EAGAIN;
353
            }
353
            }
354
354
355
            if (rv == APR_EOF) {
356
                return APR_ECONNABORTED;
357
            }
358
355
            if (rv != APR_SUCCESS) {
359
            if (rv != APR_SUCCESS) {
356
                return rv;
360
                return rv;
357
            }
361
            }
Lines 409-414 apr_status_t ap_http_filter(ap_filter_t *f, apr_bu Link Here
409
                    return APR_EAGAIN;
413
                    return APR_EAGAIN;
410
                }
414
                }
411
415
416
                if (rv == APR_EOF && ctx->state != BODY_NONE
417
                        && ctx->remaining > 0) {
418
                    return APR_ECONNABORTED;
419
                }
420
412
                if (rv != APR_SUCCESS) {
421
                if (rv != APR_SUCCESS) {
413
                    return rv;
422
                    return rv;
414
                }
423
                }
Lines 425-431 apr_status_t ap_http_filter(ap_filter_t *f, apr_bu Link Here
425
                    if (ctx->remaining > 0) {
434
                    if (ctx->remaining > 0) {
426
                        e = APR_BRIGADE_LAST(b);
435
                        e = APR_BRIGADE_LAST(b);
427
                        if (APR_BUCKET_IS_EOS(e)) {
436
                        if (APR_BUCKET_IS_EOS(e)) {
428
                            return APR_EOF;
437
                            apr_bucket_delete(e);
438
                            return APR_ECONNABORTED;
429
                        }
439
                        }
430
                    }
440
                    }
431
                    else if (ctx->state == BODY_CHUNK_DATA) {
441
                    else if (ctx->state == BODY_CHUNK_DATA) {
Lines 473-478 apr_status_t ap_http_filter(ap_filter_t *f, apr_bu Link Here
473
                return APR_EAGAIN;
483
                return APR_EAGAIN;
474
            }
484
            }
475
485
486
            if (rv == APR_EOF) {
487
                return APR_ECONNABORTED;
488
            }
489
476
            if (rv != APR_SUCCESS) {
490
            if (rv != APR_SUCCESS) {
477
                return rv;
491
                return rv;
478
            }
492
            }

Return to bug 55475