<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">2 дек. 2016 г., в 13:28, Ingela Andin <<a href="mailto:ingela.andin@gmail.com" class="">ingela.andin@gmail.com</a>> написал(а):</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class=""><div class="gmail_extra"><br class="Apple-interchange-newline"><br class=""><div class="gmail_quote">2016-12-01 12:37 GMT+01:00 Richard Jones<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:rj@metabrew.com" target="_blank" class="">rj@metabrew.com</a>></span>:<br class=""><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;">The {buffer, integer()} option from gen_tcp is useful for breaking up<br class="">incoming data into manageable sizes, especially when in {packet, line}<br class="">mode.<br class=""><br class="">The docs suggest (kinda) that the gen_tcp options should also work<br class="">when connecting via the ssl module, but this isn'<span class="Apple-converted-space"> </span></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;">always the case -<br class="">the buffer option is silently ignored by ssl:connect<br class=""></blockquote><br class=""></div><div class="gmail_quote">Actually it is not ignored it just is not has no noticeable affect to you.<span class="Apple-converted-space"> </span><br class=""></div><div class="gmail_quote"><br class=""><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;">Is this<span class="Apple-converted-space"> </span></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;">a bug? Tested on erl 17, 18, 19<br class=""><br class=""></blockquote><div class=""><br class=""></div><div class="">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="Apple-converted-space"> </span><br class=""></div><div class=""><br class=""></div><div class="">Regards Ingela Erlang/OTP- team <span class="Apple-converted-space"> </span></div></div></div></div></div></div></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.</body></html>