mod_reqtimeout.c revision 6029353b43240f5fa7feede018ce0e3ab1600c96
342N/A#include "http_config.h"
1472N/A#include "http_request.h"
1472N/A#include "http_connection.h"
1472N/A#include "http_protocol.h"
342N/A#include "http_log.h"
342N/A#include "http_core.h"
342N/A#include "util_filter.h"
1879N/A#define APR_WANT_STRFUNC
1879N/A#include "apr_strings.h"
1879N/A#include "apr_version.h"
751N/A#define MRT_DEFAULT_BODY_MAX_TIMEOUT 0
1044N/A int new_timeout;
1044N/A int new_max_timeout;
342N/A int in_keep_alive;
342N/Astatic int default_header_rate_factor;
342N/Astatic int default_body_rate_factor;
342N/A if (*time_left_p <= 0)
1282N/A return APR_TIMEUP;
342N/A return APR_SUCCESS;
342N/A if (APR_BUCKET_IS_EOS(b))
342N/A return APR_SUCCESS;
342N/A if (APR_BUCKET_IS_METADATA(b))
342N/A return APR_SUCCESS;
342N/A return APR_INCOMPLETE;
1111N/A return APR_SUCCESS;
return rv;
return DECLINED;
return DECLINED;
return OK;
return OK;
return OK;
return OK;
return cfg;
return cfg;
char *endptr;
if (*val < 0) {
return NULL;
apr_pool_t *p,
const char *key,
const char *val)
if (ret)
return ret;
if (rate == 0)
if (ret)
return ret;
if (ret)
return ret;
if (rate)
if (rate)
return ret;
const char *arg)
while (*arg) {
const char *err;
if (!val) {
if (err)
return NULL;
#if MRT_DEFAULT_HEADER_MIN_RATE > 0
#if MRT_DEFAULT_BODY_MIN_RATE > 0
{NULL}