Allow raw options in ssl:listen

Roger Lipscombe <[email protected]> Mon, 7 Sep 2015 19:58:34 +0100
Newsgroups gmane.comp.lang.erlang.patches
Message-ID <CAJgnQd9QCrdACiYj7LgeKOs-Bh3X2R1ztSESq+cMYyEaWxHQEw@mail.gmail.com>
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.
_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches