<div dir="ltr">Hi!<div><br></div><div>Until recently, I thought that I can do "connection" back pressure from cowboy like:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">NbAcceptors = 256,<br>Backlog = 256,<br>MaxConnections = 256,<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">cowboy:start_http(http, NbAcceptors, [{port, ...}, {backlog, Backlog}, {max_connections, MaxConnections}], [{env, ...}]),</blockquote><div><br></div><div>But some times ago I'm observed that I can't, the "ranch_server:count_connections/1" says that active ranch connection was gather than 256.</div><div>While the "ss -lt" show me that ranch socket backlog is 256. And I can't understand why?</div><div><br></div><div>- Does the "ranch_server:count_connections/1" show not only active connections in ESTABLISHED state, but and the TIME_WAIT state?</div><div>- How can I properly do connection back pressure with ranch and cowboy?</div><div><br></div><div>-- <br><div><div dir="ltr">Петровский Александр / Alexander Petrovsky,<br><br>Skype: askjuise<br><div>Phone: +7 914 8 820 815<div><br></div></div></div></div>
</div></div>