diff xml/en/docs/http/websocket.xml @ 1525:e47758a54759

Updated the "WebSockets Proxying" article with proxy_read_timeout.
author Yaroslav Zhuravlev <yar@nginx.com>
date Wed, 01 Jul 2015 15:54:32 +0300
parents 95c3c3bbf1ce
children d1d49bbb3df0
line wrap: on
line diff
--- a/xml/en/docs/http/websocket.xml
+++ b/xml/en/docs/http/websocket.xml
@@ -7,7 +7,7 @@
 <article name="WebSocket proxying"
          link="/en/docs/http/websocket.html"
          lang="en"
-         rev="1">
+         rev="2">
 
 
 <section>
@@ -77,6 +77,22 @@ http {
 </programlisting>
 </para>
 
+<para>
+By default, the connection will be closed
+if no data is transmitted within 60 seconds.
+The <link doc="ngx_http_proxy_module.xml" id="proxy_read_timeout"/> and
+<link doc="ngx_http_proxy_module.xml" id="proxy_send_timeout"/> directives
+allow overriding this value:
+<programlisting>
+location /chat/ {
+    ...
+
+    proxy_read_timeout 10m;
+    proxy_send_timeout 10m;
+}
+</programlisting>
+</para>
+
 </section>
 
 </article>