Discussion:
[erlang-patches] Allow raw options in ssl:listen
Roger Lipscombe
2015-09-07 18:58:34 UTC
Permalink
I originally reported this in
http://erlang.org/pipermail/erlang-questions/2014-October/081226.html;
here's a patch against 18.0.3:

diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl
index 9f2af73..19b091d 100644
--- a/lib/ssl/src/ssl.erl
+++ b/lib/ssl/src/ssl.erl
@@ -1169,6 +1169,8 @@ assert_proplist([]) ->
assert_proplist([{Key,_} | Rest]) when is_atom(Key) ->
assert_proplist(Rest);
%% Handle exceptions
+assert_proplist([{raw,_,_,_} | Rest]) ->
+ assert_proplist(Rest);
assert_proplist([inet | Rest]) ->
assert_proplist(Rest);
assert_proplist([inet6 | Rest]) ->

This affects both 17.x and 18.x. Is there any chance that this could
be merged into both?

Regards,
Roger.
Roger Lipscombe
2015-09-07 19:07:33 UTC
Permalink
Post by Roger Lipscombe
I originally reported this in
http://erlang.org/pipermail/erlang-questions/2014-October/081226.html;
[snip]

...and a PR: https://github.com/erlang/otp/pull/824

Loading...