<div dir="ltr">Hi!<br><div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-02 11:43 GMT+01:00 Alex S. <span dir="ltr"><<a href="mailto:alex0player@gmail.com" target="_blank">alex0player@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><br><div><blockquote type="cite"><div>2 дек. 2016 г., в 13:28, Ingela Andin <<a href="mailto:ingela.andin@gmail.com" target="_blank">ingela.andin@gmail.com</a>> написал(а):</div><span class="gmail-"><br class="gmail-m_-6447030924055942658Apple-interchange-newline"><div><div dir="ltr" style="font-family:helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div><div class="gmail_extra"><br class="gmail-m_-6447030924055942658Apple-interchange-newline"><br><div class="gmail_quote">2016-12-01 12:37 GMT+01:00 Richard Jones<span class="gmail-m_-6447030924055942658Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:rj@metabrew.com" target="_blank">rj@metabrew.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The {buffer, integer()} option from gen_tcp is useful for breaking up<br>incoming data into manageable sizes, especially when in {packet, line}<br>mode.<br><br>The docs suggest (kinda) that the gen_tcp options should also work<br>when connecting via the ssl module, but this isn'<span class="gmail-m_-6447030924055942658Apple-converted-space"> </span></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">always the case -<br>the buffer option is silently ignored by ssl:connect<br></blockquote><br></div><div class="gmail_quote">Actually it is not ignored it just is not has no noticeable affect to you.<span class="gmail-m_-6447030924055942658Apple-converted-space"> </span><br></div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Is this<span class="gmail-m_-6447030924055942658Apple-converted-space"> </span></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">a bug? Tested on erl 17, 18, 19<br><br></blockquote><div><br></div><div>For this option to work as expected for you it needs to be emulated by the ssl process as are packet related options. So it is a missing feature.<span class="gmail-m_-6447030924055942658Apple-converted-space"> </span><br></div><div><br></div><div>Regards  Ingela Erlang/OTP- team  <span class="gmail-m_-6447030924055942658Apple-converted-space"> </span></div></div></div></div></div></div></span></blockquote></div>I would argue that the combination of these two effects can also be described as «buffer_size is pushed a level lower» (where it is obviously not useful to the user of ssl module), and I would additionally argue that erroneously so. The option needs to be either explicitly not supported (with a note in the documentation), or do the right thing, not do some invisible thing that has no positive effect.</div></blockquote><div><br><br></div><div>I am not disagreeing  with you on that.  I think we can consider it a bug that this options is let through, and a missing feature that it is not emulated. The reasoning is that ssl shall not  do option checking on gen_tcp options that may be used and does note affect ssl. But some options must be emulated. This option was clearly missed. Anyone wanting this option is welcome to make a PR.<br><br><span class="gmail-">Regards  Ingela Erlang/OTP- team  <span class="gmail-m_-6447030924055942658Apple-converted-space"> </span></span><br></div><div> </div></div><br></div></div></div>