{
apr_ssize_t len_read, total;
apr_status_t rv;
- apr_int32_t timeout;
ap_bucket *b, *old;
const char *tempbuf;
core_request_config *req_cfg =
do {
if (AP_BRIGADE_EMPTY(bb)) {
- apr_getsocketopt(r->connection->client_socket, APR_SO_TIMEOUT, &timeout);
- apr_setsocketopt(r->connection->client_socket, APR_SO_TIMEOUT, 0);
- if (ap_get_brigade(r->input_filters, bb, 9999) != APR_SUCCESS) {
+ if (ap_get_brigade(r->input_filters, bb, AP_MODE_BLOCKING) != APR_SUCCESS) {
/* if we actually fail here, we want to just return and
* stop trying to read data from the client.
*/
- apr_setsocketopt(r->connection->client_socket, APR_SO_TIMEOUT, timeout);
r->connection->keepalive = -1;
ap_brigade_destroy(bb);
return -1;
}
- apr_setsocketopt(r->connection->client_socket, APR_SO_TIMEOUT, timeout);
}
b = AP_BRIGADE_FIRST(bb);
} while (AP_BRIGADE_EMPTY(bb));