<div dir="ltr"><div class="gmail_extra">Hi!</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_quote">2014-09-09 10:24 GMT+02:00 Roger Lipscombe <span dir="ltr"><<a href="mailto:roger@differentpla.net" target="_blank">roger@differentpla.net</a>></span>:<br><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"><span class="">On 9 September 2014 08:54, Ingela Andin <<a href="mailto:ingela.andin@gmail.com">ingela.andin@gmail.com</a>> wrote:<br>
> If Ranch uses a pool of accept sockets it is possible that you<br>
> you are seeing an inheritance bug in ssl that is fixed in 17.<br>
<br>
</span>We are using a pool of accept sockets; but I would have thought that<br>
the fact that we've been around the loop and set {active, once} before<br>
this happens means that we're not getting bitten by this?<br>
<br>
Do you have a link to the fix in 17?<br></blockquote><div><br></div><div>Fixed by commit: c80735b0c82ec0bbaa2e2bda4f1598210b193556<br></div><div> </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">
<span class=""><br>
> I would say that from an OTP view of things, the normal way to handle socket<br>
> messages is with active once.<br>
<br>
</span>We are using {active, once}; can you point to an example of an OTP<br>
application that handles messages across multiple packets? I'm pretty<br>
sure that I can sort this out by using {active, true} and using<br>
selective receive, but I'd like to see an example with {active, once}.<br></blockquote><div><br></div><div><br></div><div>The ssl application uses active once internally (the active once on an sslsocket is emulated), so does the ssh application and inets</div><div>HTTP-server to name a few.</div><div><br></div><div> </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">
<span class=""><br>
> From a supervisor and code upgrading perspective you do usually not want<br>
> black a process in a recv call.<br>
<br>
</span>Surely that's {active, true}, or am I missing something?<br></blockquote><div><br></div><div>Active once (or nowdays even active N) can be used to get some flow control as opposed to active mode.</div><div><br></div><div>Regards Ingela Erlang/OTP Team - Ericsson AB </div></div></div></div>