<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">For me the documentation reads in a way in which a connection with keep-alive that already received one request satisfies those two conditions:</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">- It has a request processed by the server. (processed is past tense, which is true after the first one was made)</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">- The whole request has already been read. <br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">While the actual behavior is: it has a request "being" processed by the server and the whole request header has already been read. Once the request is completely processed it doesn't count anymore.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 19, 2017 at 4:37 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru" target="_blank">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<span class=""><br>
On Tue, Dec 19, 2017 at 03:29:22PM +0100, Abilio Marques wrote:<br>
<br>
> I imagined to be something like that, but this is not obvious from the<br>
> documentation. Is there a way to clarify it for future readers?<br>
<br>
</span>The documentation already says<br>
(<a href="http://nginx.org/en/docs/http/ngx_http_limit_conn_module.html" rel="noreferrer" target="_blank">http://nginx.org/en/docs/<wbr>http/ngx_http_limit_conn_<wbr>module.html</a>):<br>
<br>
: Not all connections are counted. A connection is counted only if<br>
: it has a request processed by the server and the whole request<br>
: header has already been read.<br>
<br>
in an attempt to clarify things.  This is more or less identical<br>
to what I wrote.  The difference is recommendations on how to<br>
better trigger the limit, but I doubt such recommendations should<br>
be in the documentation.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Maxim Dounin<br>
<a href="http://mdounin.ru/" rel="noreferrer" target="_blank">http://mdounin.ru/</a><br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>