You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
) (the former fall back to the later so works for non-ssl connections too)
Maybe a more generic solution would be if Transport behaviour would have an optional format_error callback and ranch_ssl would implement it calling ssl:format_error.
Not sure which one is preferred?
As an example the below crash happens if a non-existing cipher is provided in the options (seen with Erlang 26.2.5)
If you'd like to work on this, this is a great time to do it as I will release a new version soon. Otherwise I will probably just change the listen return value to any() instead of atom().
According to the
ranch_transport
behaviour,listen/1
callback should return only atoms as error reasons https://github.com/ninenines/ranch/blob/master/src/ranch_transport.erl#L31. Howeverssl:listen
and henceranch_ssl:listen/1
can return more sophisticated error reasons as visible inssl:format_error/1
.A quick fix would be to use
ssl:format_error
instead ofinet:format_error
in (ranch/src/ranch_acceptors_sup.erl
Line 114 in a8f31f3
Maybe a more generic solution would be if Transport behaviour would have an optional
format_error
callback andranch_ssl
would implement it callingssl:format_error
.Not sure which one is preferred?
As an example the below crash happens if a non-existing cipher is provided in the options (seen with Erlang 26.2.5)
The text was updated successfully, but these errors were encountered: