apr_off_t readbytes;
apr_bucket *e;
rp->headers_in = r->headers_out;
- readbytes = 8192;
+ readbytes = AP_IOBUFSIZE;
while (ap_get_brigade(rp->input_filters,
bb,
AP_MODE_NONBLOCKING,
break;
}
apr_brigade_cleanup(bb);
- readbytes = 8192;
+ readbytes = AP_IOBUFSIZE;
}
}
ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server,
return APR_SUCCESS;
}
if (rv == SSL_ERROR_WANT_READ) {
- apr_off_t tempread = 1024;
+ apr_off_t tempread = AP_IOBUFSIZE;
return churn_input(pRec, eMode, &tempread);
}
return rv;
}
if (n < 0 && errno == EINTR && APR_BRIGADE_EMPTY(ctx->b)) {
- apr_off_t tempread = 1024;
+ apr_off_t tempread = AP_IOBUFSIZE;
return churn_input(pRec, eMode, &tempread);
}
return APR_SUCCESS;
}
- /* Readbytes == 0 implies we only want a LF line.
- * 1024 seems like a good number for now. */
+ /* Readbytes == 0 implies we only want a LF line. */
if (APR_BRIGADE_EMPTY(ctx->b)) {
- tempread = 1024;
+ tempread = AP_IOBUFSIZE;
rv = churn_input(ctx, mode, &tempread);
if (rv != APR_SUCCESS)
return rv;
/* Hey, we're about to be starved - go fetch more data. */
if (APR_BRIGADE_EMPTY(ctx->b)) {
- tempread = 1024;
+ tempread = AP_IOBUFSIZE;
ret = churn_input(ctx, mode, &tempread);
if (ret != APR_SUCCESS)
return ret;