comparison xml/en/docs/http/websocket.xml @ 1536:d1d49bbb3df0

Removed proxy_send_timeout and its example from "WebSockets Proxying" article.
author Yaroslav Zhuravlev <yar@nginx.com>
date Wed, 15 Jul 2015 20:16:02 +0300
parents e47758a54759
children 66a30a380fba
comparison
equal deleted inserted replaced
1535:61b1ab5adbc9 1536:d1d49bbb3df0
5 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> 5 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd">
6 6
7 <article name="WebSocket proxying" 7 <article name="WebSocket proxying"
8 link="/en/docs/http/websocket.html" 8 link="/en/docs/http/websocket.html"
9 lang="en" 9 lang="en"
10 rev="2"> 10 rev="3">
11 11
12 12
13 <section> 13 <section>
14 14
15 <para> 15 <para>
77 </programlisting> 77 </programlisting>
78 </para> 78 </para>
79 79
80 <para> 80 <para>
81 By default, the connection will be closed 81 By default, the connection will be closed
82 if no data is transmitted within 60 seconds. 82 if the proxied server does not transmit any data within 60 seconds.
83 The <link doc="ngx_http_proxy_module.xml" id="proxy_read_timeout"/> and 83 This timeout can be increased with the
84 <link doc="ngx_http_proxy_module.xml" id="proxy_send_timeout"/> directives 84 <link doc="ngx_http_proxy_module.xml" id="proxy_read_timeout"/> directive.
85 allow overriding this value: 85 Alternatively, the proxied server can be configured
86 <programlisting> 86 to periodically send WebSocket ping frames to reset the timeout
87 location /chat/ { 87 and check if the connection is still alive.
88 ...
89
90 proxy_read_timeout 10m;
91 proxy_send_timeout 10m;
92 }
93 </programlisting>
94 </para> 88 </para>
95 89
96 </section> 90 </section>
97 91
98 </article> 92 </article>