Lines 370-377
Link Here
|
370 |
reqtimeout_con_cfg *ccfg = |
370 |
reqtimeout_con_cfg *ccfg = |
371 |
ap_get_module_config(r->connection->conn_config, &reqtimeout_module); |
371 |
ap_get_module_config(r->connection->conn_config, &reqtimeout_module); |
372 |
|
372 |
|
373 |
if (ccfg == NULL || r->method_number == M_CONNECT) { |
373 |
if (ccfg == NULL) { |
374 |
/* either disabled for this connection or a CONNECT request */ |
374 |
/* disabled for this connection */ |
375 |
return OK; |
375 |
return OK; |
376 |
} |
376 |
} |
377 |
cfg = ap_get_module_config(r->connection->base_server->module_config, |
377 |
cfg = ap_get_module_config(r->connection->base_server->module_config, |
Lines 380-385
Link Here
|
380 |
|
380 |
|
381 |
ccfg->timeout_at = 0; |
381 |
ccfg->timeout_at = 0; |
382 |
ccfg->max_timeout_at = 0; |
382 |
ccfg->max_timeout_at = 0; |
|
|
383 |
|
384 |
if (r->method_number == M_CONNECT) { |
385 |
/* CONNECT request, do not apply timeout */ |
386 |
return OK; |
387 |
} |
388 |
|
383 |
ccfg->type = "body"; |
389 |
ccfg->type = "body"; |
384 |
if (cfg->body_timeout != UNSET) { |
390 |
if (cfg->body_timeout != UNSET) { |
385 |
ccfg->new_timeout = cfg->body_timeout; |
391 |
ccfg->new_timeout = cfg->body_timeout; |