<div dir="ltr">I'm not sure. I think I should log all requests with pid to check it.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 23, 2013 at 5:37 PM, Loïc Hoguin <span dir="ltr"><<a href="mailto:essen@ninenines.eu" target="_blank">essen@ninenines.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 01/23/2013 02:29 PM, Max Lapshin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Currently I have to do following thing to really update routes:<br>
<br>
case lists:keyfind({ranch_listener_<u></u>sup,my_http}, 1,<br>
supervisor:which_children(<u></u>ranch_sup)) of<br>
{_, ListenerSup, _, _} -><br>
case lists:keyfind(ranch_acceptors_<u></u>sup, 1,<br>
supervisor:which_children(<u></u>ListenerSup)) of<br>
{_, AcceptorSup, _, _} -><br>
[erlang:exit(Pid,normal) || {_,Pid,_,_} <-<br>
supervisor:which_children(<u></u>AcceptorSup)],<br>
ok;<br>
false -><br>
ok<br>
end;<br>
false -> ok<br>
end<br>
<br>
because after ranch:set_protocol_options(<u></u>Ref, ProtoOpts) there are<br>
still acceptors that work with old routing information<br>
<br>
<br>
cowboy d3277b08ce<br>
ranch c3133bfbc3<br>
<br>
Should I just update?<br>
</blockquote>
<br></div>
The version you're using has all acceptors updated immediately. There's a test for it (tcp_upgrade) that confirms it properly upgrades. Are you sure it's *acceptors* that are using the old routing information and not *connections*? Only new connections get the new protocol options.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Loďc Hoguin</font></span><div class="HOEnZb"><div class="h5"><br>
Erlang Cowboy<br>
Nine Nines<br>
<a href="http://ninenines.eu" target="_blank">http://ninenines.eu</a><br>
</div></div></blockquote></div><br></div>