[erlang-questions] packet and packet_size options in dlls socket

Joe K goodjoe2049@REDACTED
Sat Dec 30 18:52:15 CET 2017


Why is `packet` one of the default options here
https://github.com/erlang/otp/blob/master/lib/ssl/src/dtls_socket.erl#L142-L143

  default_inet_values() ->
    [{active, true}, {mode, list}, {packet, 0}, {packet_size, 0}].

But is then prohibited here
https://github.com/erlang/otp/blob/master/lib/ssl/src/dtls_socket.erl#L173-L174

  emulated_options([{packet, _} = Opt | _], _, _) ->
    throw({error, {options, {not_supported, Opt}}});

Same for `packet_size` option.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20171230/e1073dd4/attachment.htm>


More information about the erlang-questions mailing list