Apache Module mod_reqtimeout

Apache
Module mod_reqtimeout

Available
Languages: en




















Description: Set
timeout and minimum data rate for receiving requests
Status: Extension
Module Identifier: reqtimeout_module
Source File: mod_reqtimeout.c
Compatibility: Available
in Apache 2.2.15 and later

Directives



Topics



Examples


  1. Allow 10 seconds to receive
    the request including the headers and 30 seconds for receiving the request
    body:

    RequestReadTimeout
    header=10 body=30


  2. Allow at least 10 seconds
    to receive the request body. If the client sends data, increase the timeout by
    1 second for every 1000 bytes received, with no upper limit for the timeout
    (exept for the limit given indirectly by LimitRequestBody):

    RequestReadTimeout
    body=10,MinRate=1000


  3. Allow at least 10 seconds
    to receive the request including the headers. If the client sends data,
    increase the timeout by 1 second for every 500 bytes received. But do not
    allow more than 30 seconds for the request including the headers:

    RequestReadTimeout
    header=10-30,MinRate=500


  4. Usually, a server should
    have both header and body timeouts configured. If a common configuration is
    used for http and https virtual hosts, the timeouts should not be set too low:

    RequestReadTimeout
    header=20-40,MinRate=500 body=20,MinRate=500

RequestReadTimeout Directive
























Description: Set
timeout values for receiving request headers and body from client.
Syntax: RequestReadTimeout
[header=timeout[[-maxtimeout],MinRate=rate] [body=timeout[[-maxtimeout],MinRate=rate]
Default: Unset;
no limit
Context: server
config, virtual host
Status: Extension
Module: mod_reqtimeout

This directive
can set various timeouts for receiving the request headers and the request body
from the client. If the client fails to send headers or body within the
configured time, a 408
REQUEST TIME OUT
 error is
sent.

For SSL
virtual hosts, the header timeout values include the time needed to do the
initial SSL handshake. If the user‘s browser is configured to query certificate
revocation lists and the CRL server is not reachable, the initial SSL handshake
may take a significant time until the browser gives up waiting for the CRL.
Therefore the header timeout values should not be set to very low values for SSL
virtual hosts. The body timeout values include the time needed for SSL
renegotiation (if necessary).

When an AcceptFilter is in use (usually the case on Linux
and FreeBSD), the socket is not sent to the server process before at least one
byte (or the whole request for httpready)
is received. The header timeout configured with RequestReadTimeout is only effective after the server
process has received the socket.

For each of
the two timeout types (header or body), there are three ways to specify the
timeout:

  • Fixed
    timeout value
    :

    type=timeout

    The time in
    seconds allowed for reading all of the request headers or body, respectively.
    A value of 0 means no limit.


  • Timeout
    value that is increased when data is received
    :

    type=timeout,MinRate=data_rate

    Same as
    above, but whenever data is received, the timeout value is increased according
    to the specified minimum data rate (in bytes per second).


  • Timeout
    value that is increased when data is received, with an upper
    bound
    :

    type=timeout-maxtimeout,MinRate=data_rate

    Same as
    above, but the timeout will not be increased above the second value of the
    specified timeout range.

Available
Languages: en

Comments

Notice:
This is
not a Q&A section. Comments placed here should be pointed towards
suggestions on improving the documentation or server, and may be removed again
by our moderators if they are either implemented or considered
invalid/off-topic. Questions on how to manage the Apache HTTP Server should be
directed at either our IRC channel, #httpd, on Freenode, or sent to ourmailing lists.

RSS   Log in /
register

Anonymous 431 days ago Rating: 0 (register an account in order to rate comments)


Some third party modules that require an active connection, like apache-websockets, will fail due module. These connections could be sleeping for a time and when they wake up, the timeout close the connection.

covener 431 days ago Rating: 0 (register an account in order to rate comments)


Seems fixable via a some small pseudo-API (connection level note) to mark the conn as n/a for end to end mod_reqtimeout.

Apache Module mod_reqtimeout

时间: 2024-10-16 08:25:10

Apache Module mod_reqtimeout的相关文章

Apache Module mod_ssl

http://httpd.apache.org/docs/current/mod/mod_ssl.html Description: Strong cryptography using the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols Status: Extension Module Identifier: ssl_module Source File: mod_ssl.c Summary Th

Apache Error: Invalid command ‘Allow’, perhaps misspelled or defined by a module not included in the server configuration

在一个Window Server 2008R2系统上使用Apache架设了一个PHP的网站项目 在配置Apache的过程中出现了以下问题 根据上面的提示说是没有相应的权限,那就在虚拟主机里进行了配置,httpd-vhosts.conf 中的配置如下 <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "D:/test.com" ServerName test.com ServerAlias www.te

Which PHP mode? Apache vs CGI vs FastCGI

Which PHP mode? Apache vs CGI vs FastCGI There are multiple ways to execute PHP scripts on a web server. We’re often asked about the difference between these modes, so here it is!We offer the three most common PHP handlers across our Linux Cloud Host

Apache部署django项目

我想这应该是很普遍的一篇文章,百度了一下确实有不少相关的文章,居然还在讲用“mod_python” , 我也是醉了.在些过程中颇费了些力气.在些记录. ---------------------------------------------- 在此之前,我们一直使用django的manage.py 的runserver 命令来运行django应用,但这只是我们的开发环境,当项目真正部署上线的时候这做就不可行了,必须将我们的项目部署到特定的web服务器上. 安装apache Apache是非常有

Apache 流媒体 拖动模块编译

http://www.server110.com/apache/201403/6943.html apache下配置flv拖动 环境:debian apache2 ckplayer 1.安装apxs工具. apxs 是Apache的扩展工具,用于编译一个或多个源程序或目标代码文件为动态共享对象,使之可以用LoadModule指令在运行时加载到Apache 服器中. 作为apache模块的编译工具,用它来编译mod_flvx.c文件. debian和ubuntu下,apxs被放在apache2-t

apache 安装

文档历史 版本 日期 作者 修改历史 1.0 20100730 steve.luo 新建文档     目录 1. 安装环境... 4 2. 安装步骤... 5 2.1. 安装zlib如果要使用apache deflate模块需要用到zlib... 5 2.2. 安装配置apache. 5 2.2.1. 编译并安装apache. 5 2.2.2. 配置apache. 6 2.2.3. mod_jk.so获取... 9 1.安装环境 OS: SUSE Linux Enterprise Server

linux环境下Apache+Tomcat集群配置

写在前面 apache配置多个tomcat,实现请求分流,多个tomcat服务均衡负载,增加服务的可靠性.最近研究了一下,遇到许多问题,记录一下,方便以后查阅,不喜欢apache,nginx也是可以做到的. 准备 版本很重要,我就是由于版本原因,一直报错 linux 使用 #lsb_release -a查看当前linux系统版本. 本例:CentOS Linux release 7.0.1406 (Core) jdk 使用 # java -version查看当前版本,如果没有,先装好.downl

PHP在apache中的三种工作方式

cgi是什么? CGI是外部应用程序(CGI程序)与Web服务器之间的接口标准,是在CGI程序和Web服务器之间传递信息的规程.CGI规范允许Web服务器执行外部程序,并将它们的输出发送给Web浏览器,CGI将Web的一组简单的静态超媒体文档变成一个完整的新的交互式媒体. 以下分别比较:1. CGI模式与模块模式比较:PHP在apache中两种工作方式的区别(CGI模式.Apache 模块DLL)这两种工作方式的安装:PHP 在 Apache 2.0 中的 CGI 方式ScriptAlias /

php在apache中运行模式

php在apache中运行模式 (2011-12-18 02:38:27) 标签: 杂谈 分类: 服务器及软件 一.php在php在三种工作方式:Apache 模块DLL) 以下分别比较: 1. php在CGI模式.PHP 在 中的 # 对 PHP 4 用这行 Action application/x-httpd-php "/php/php.exe" # 对 PHP 5 用这行 Action application/x-httpd-php "/php/php-Apache 2