<div dir="ltr"><div><div>Hi!<br><br>Some time ago we added a check that the options list should be a kev-value list, as there where<br>some pretty strange errors when using next protocol negotiation due to the fact that the input was incorrectly<br></div>formated. Unrecognized options are assumed to be inet options and passed on to inet. We do have some<br></div><div>special clauses for making exceptions for inet and inet6, so we will have to add a raw clause too.<br><br></div><div>Regards Ingela Erlang/OTP Team - Ericsson AB<br></div> <br><br><div><div><div><div><div class="gmail_extra"><div class="gmail_quote">2014-10-07 16:33 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 7 October 2014 14:38, Roger Lipscombe <<a href="mailto:roger@differentpla.net">roger@differentpla.net</a>> wrote:<br>
> In Erlang R16B03-1, I've been passing raw options to ssl:listen as<br>
> follows, and it's been working fine:<br>
><br>
> % The constants are defined elsewhere.<br>
> LOpts = [{raw, ?IPPROTO_TCP, ?TCP_MAXSEG, <<MSS:32/native>>} | ...],<br>
> {ok, LSocket} = ssl:listen(0, LOpts)<br>
><br>
> In Erlang 17.3, this fails with<br>
> {option_not_a_key_value_tuple,{raw,6,2,<<64,2,0,0>>}}<br>
><br>
> How do I pass a raw option to ssl:listen in Erlang 17.3?<br>
<br>
</span>Oh, and ssl:setopts doesn't appear to be sufficient. TCP_MAXSEG must<br>
be set when the socket is initially opened, before listen is called.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div></div></div></div></div></div>