<div dir="ltr">Pure guess:<div><br></div><div>Because UDP is an unreliable protocol and thus has no support for the "packet" option (whereas TCP does). My guess is that {packet, 0} has no real effect in the default option list. </div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 30, 2017 at 6:52 PM Joe K <<a href="mailto:goodjoe2049@gmail.com">goodjoe2049@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Why is `packet` one of the default options here<div><a href="https://github.com/erlang/otp/blob/master/lib/ssl/src/dtls_socket.erl#L142-L143" target="_blank">https://github.com/erlang/otp/blob/master/lib/ssl/src/dtls_socket.erl#L142-L143</a></div><div><br></div><div><div>  default_inet_values() -></div><div>    [{active, true}, {mode, list}, {packet, 0}, {packet_size, 0}].</div></div><div><br></div><div>But is then prohibited here</div><div><a href="https://github.com/erlang/otp/blob/master/lib/ssl/src/dtls_socket.erl#L173-L174" target="_blank">https://github.com/erlang/otp/blob/master/lib/ssl/src/dtls_socket.erl#L173-L174</a><br></div><div><br></div><div><div>  emulated_options([{packet, _} = Opt | _], _, _) -></div><div>    throw({error, {options, {not_supported, Opt}}});</div></div><div><br></div><div>Same for `packet_size` option.</div><div><br></div><div><br></div></div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>