Go to the source code of this file.
|
| #define | APR_WANT_STRFUNC |
| |
| #define | UNSET -1 |
| |
| #define | MRT_DEFAULT_handshake_TIMEOUT 0 /* disabled */ |
| |
| #define | MRT_DEFAULT_handshake_MAX_TIMEOUT 0 |
| |
| #define | MRT_DEFAULT_handshake_MIN_RATE 0 |
| |
| #define | MRT_DEFAULT_header_TIMEOUT 20 |
| |
| #define | MRT_DEFAULT_header_MAX_TIMEOUT 40 |
| |
| #define | MRT_DEFAULT_header_MIN_RATE 500 |
| |
| #define | MRT_DEFAULT_body_TIMEOUT 20 |
| |
| #define | MRT_DEFAULT_body_MAX_TIMEOUT 0 |
| |
| #define | MRT_DEFAULT_body_MIN_RATE 500 |
| |
| #define | MIN(x, y) ((x) < (y) ? (x) : (y)) |
| |
| #define | INIT_STAGE(cfg, ccfg, stage) |
| |
| #define | UNSET_STAGE(cfg, stage) |
| |
| #define | MERGE_INT(cfg, base, add, val) cfg->val = (add->val == UNSET) ? base->val : add->val |
| |
| #define | MERGE_STAGE(cfg, base, add, stage) |
| |
|
| static void | extend_timeout (reqtimeout_con_cfg *ccfg, apr_bucket_brigade *bb) |
| |
| static apr_status_t | check_time_left (reqtimeout_con_cfg *ccfg, apr_time_t *time_left_p, apr_time_t now) |
| |
| static apr_status_t | have_lf_or_eos (apr_bucket_brigade *bb) |
| |
| static apr_status_t | brigade_append (apr_bucket_brigade *bbOut, apr_bucket_brigade *bbIn) |
| |
| static apr_status_t | reqtimeout_filter (ap_filter_t *f, apr_bucket_brigade *bb, ap_input_mode_t mode, apr_read_type_e block, apr_off_t readbytes) |
| |
| static apr_status_t | reqtimeout_eor (ap_filter_t *f, apr_bucket_brigade *bb) |
| |
| static int | reqtimeout_init (conn_rec *c) |
| |
| static void | reqtimeout_before_header (request_rec *r, conn_rec *c) |
| |
| static int | reqtimeout_before_body (request_rec *r) |
| |
| static void * | reqtimeout_create_srv_config (apr_pool_t *p, server_rec *s) |
| |
| static void * | reqtimeout_merge_srv_config (apr_pool_t *p, void *base_, void *add_) |
| |
| static const char * | parse_int (apr_pool_t *p, const char *arg, int *val) |
| |
| static const char * | set_reqtimeout_param (reqtimeout_srv_cfg *conf, apr_pool_t *p, const char *key, const char *val) |
| |
| static const char * | set_reqtimeouts (cmd_parms *cmd, void *mconfig, const char *arg) |
| |
| static void | reqtimeout_hooks (apr_pool_t *pool) |
| |
◆ APR_WANT_STRFUNC
◆ INIT_STAGE
Value:
if (cfg->stage.timeout !=
UNSET) { \
ccfg->cur_stage.timeout = cfg->stage.timeout; \
ccfg->cur_stage.max_timeout = cfg->stage.max_timeout; \
ccfg->cur_stage.rate_factor = cfg->stage.rate_factor; \
} \
else { \
} \
} while (0)
Definition at line 357 of file mod_reqtimeout.c.
◆ MERGE_INT
◆ MERGE_STAGE
Value:
cfg->stage.rate_factor = (cfg->stage.min_rate ==
UNSET) \
?
base->stage.rate_factor \
: add->
stage.rate_factor; \
} while (0)
Definition at line 475 of file mod_reqtimeout.c.
◆ MIN
◆ MRT_DEFAULT_body_MAX_TIMEOUT
| #define MRT_DEFAULT_body_MAX_TIMEOUT 0 |
◆ MRT_DEFAULT_body_MIN_RATE
| #define MRT_DEFAULT_body_MIN_RATE 500 |
◆ MRT_DEFAULT_body_TIMEOUT
| #define MRT_DEFAULT_body_TIMEOUT 20 |
◆ MRT_DEFAULT_handshake_MAX_TIMEOUT
| #define MRT_DEFAULT_handshake_MAX_TIMEOUT 0 |
◆ MRT_DEFAULT_handshake_MIN_RATE
| #define MRT_DEFAULT_handshake_MIN_RATE 0 |
◆ MRT_DEFAULT_handshake_TIMEOUT
| #define MRT_DEFAULT_handshake_TIMEOUT 0 /* disabled */ |
◆ MRT_DEFAULT_header_MAX_TIMEOUT
| #define MRT_DEFAULT_header_MAX_TIMEOUT 40 |
◆ MRT_DEFAULT_header_MIN_RATE
| #define MRT_DEFAULT_header_MIN_RATE 500 |
◆ MRT_DEFAULT_header_TIMEOUT
| #define MRT_DEFAULT_header_TIMEOUT 20 |
◆ UNSET
◆ UNSET_STAGE
◆ brigade_append()
◆ check_time_left()
◆ extend_timeout()
◆ have_lf_or_eos()
◆ parse_int()
◆ reqtimeout_before_body()
< Module has handled this stage.
< Module has handled this stage.
Definition at line 429 of file mod_reqtimeout.c.
◆ reqtimeout_before_header()
◆ reqtimeout_create_srv_config()
◆ reqtimeout_eor()
◆ reqtimeout_filter()
◆ reqtimeout_hooks()
◆ reqtimeout_init()
< Module declines to handle
< Module declines to handle
Definition at line 370 of file mod_reqtimeout.c.
◆ reqtimeout_merge_srv_config()
| static void * reqtimeout_merge_srv_config |
( |
apr_pool_t * |
p, |
|
|
void * |
base_, |
|
|
void * |
add_ |
|
) |
| |
|
static |
◆ set_reqtimeout_param()
◆ set_reqtimeouts()
◆ aplog_module_index
| int* const aplog_module_index = &( reqtimeout_module.module_index) |
|
static |
◆ default_body_rate_factor
| int default_body_rate_factor |
|
static |
◆ default_handshake_rate_factor
| int default_handshake_rate_factor |
|
static |
◆ default_header_rate_factor
| int default_header_rate_factor |
|
static |
◆ reqtimeout_cmds
Initial value:= {
{
"RequestReadTimeout" ,
set_reqtimeouts ,
NULL , 128 ,
RAW_ARGS,
"Set various timeout parameters for TLS handshake and/or " "reading request headers and body" },
}
static const char * set_reqtimeouts(cmd_parms *cmd, void *mconfig, const char *arg)
Definition at line 655 of file mod_reqtimeout.c.
◆ reqtimeout_filter_name