# Read\_timeout directive

**URL:** <https://www.ruby-forum.com/t/read-timeout-directive/227436>\
**Category:** NGINX\
**Created:** [March 15, 2013, 11:36am UTC](https://www.ruby-forum.com/t/read-timeout-directive/227436 "2013-03-15T11:36:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilmerovingio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b9bd4f/32.png) [@ilmerovingio](https://www.ruby-forum.com/u/ilmerovingio)\
**Post date:** [March 15, 2013, 11:36am UTC](https://www.ruby-forum.com/t/read-timeout-directive/227436/1 "2013-03-15T11:36:00Z")

</div>

Hi, I’ve a few servers with nginx 1.2.3 that run a streaming services  
platform.

Is there in nginx any “read\_timeout” directive (like the send\_timeout  
but  
for the opposite) that shuts down the connection if the client has not  
send  
any data for x time?

I’m looking for something also in beta stage, modules, plugin, patch…

Many thanks for your help

Posted at Nginx Forum:

> **[read\_timeout directive](https://forum.nginx.org/read.php?2,237396,237396#msg-237396)**
>
> Hi, I've a few servers with nginx 1.2.3 that run a streaming services platform. Is there in nginx any "read\_timeout" directive (like the send\_timeout but for the opposite) that shuts down the connection if the client has not send any data...

---

<div class="post-metadata">

**Author:** ![ilmerovingio](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/b9bd4f/32.png) [@ilmerovingio](https://www.ruby-forum.com/u/ilmerovingio)\
**Post date:** [March 15, 2013, 12:59pm UTC](https://www.ruby-forum.com/t/read-timeout-directive/227436/2 "2013-03-15T12:59:34Z")

</div>

Hello!

On Fri, Mar 15, 2013 at 06:35:27AM -0400, ilmerovingio wrote:

> Hi, I’ve a few servers with nginx 1.2.3 that run a streaming services  
> platform.
> 
> Is there in nginx any “read\_timeout” directive (like the send\_timeout but  
> for the opposite) that shuts down the connection if the client has not send  
> any data for x time?
> 
> I’m looking for something also in beta stage, modules, plugin, patch…

There are two timeouts related to reading data from a client,  
client\_header\_timeout and client\_body\_timeout.

See here for details:

> **[Module ngx\_http\_core\_module](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_header_timeout)**
>
> This directive appeared in version 1.11.8.

> **[Module ngx\_http\_core\_module](http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_timeout)**
>
> This directive appeared in version 1.11.8.

–  
Maxim D.

> **[nginx: donation](http://nginx.org/en/donation.html)**
